Doubling of client-side validation in DA with VTK
Thanks for your reply - still not working unfortunately. Just to summarise the problem:
I have 2 fields in a DA Insert page:
1) checkbox asking if the order is part of a group - it may or may not be for an order to be valid
2) textfield accepting a group code [initially disabled then enabled through client-side validation if 1) is checked]
I have applied server validations and bound the validated entries to the form so that if one field fails, and the form reloads (which I ask it to) then the correct entries are stuck on. Bizarrely, I've noticed that the content of 2) is bound even if it is NOT valid.
If the page is reloaded then 2), the textfield is disabled again, even if the checkbox 1) is ticked. This means that if the content entered in the textfield 2) needs to be reentered then it's inaccessible.
So unfortunately a default enabled/disabled function on a "body onload" substitute in the header doesn't fit in with the purpose of the form as 2) may/may not need to be enabled/disabled on reload.
I've put the lengthier code in the editable head, right at the end so all other Validations must come before it. It seemed to even disable the original (on checkbox) enabling client-side validation i.e. the textbox 2) wouldn't enable even when the checkbox 1) was checked.
Yikes. Don't know what to do now. I'll keep trying and update you later today.
Please bear with me - I really need to crack this Eric. Many thanks again,
Still no joy...I await advice. Many thanks Eric, Ann