A.S.: Yes, I have searched through the forum in vain
My requirement:
Within a flowed subform I have:
- radiobutton with values Yes/No.
- a flowed subform containing:
- a textfield element
When the value Yes is selected, the textfield should be available for input.. in the other case it should disappear.
I am however unable to set the field hidden.. I can toggle editable or not.
The code I have:
if (this.rawValue == "X"){
this.resolveNode("parent.subform.textfield").access = "open";
else{
this.resolveNode("parent.subform.textfield").access = "readOnly";
}
This works in the layout:ready event to put the field editable or non editable according to the radiobox selected. (the event is on the radiobutton)
The code I would think I need to hide the field would be as follows:
if (this.rawValue == "X"){
this.resolveNode("parent.subform.textfield").presence = "visible";;
else{
this.resolveNode("parent.subform.textfield").precense = "hidden";
}
However this does not work. I have also tried to place it in the change event... still does not work.
I have also tried with absolute references.
So....
1. Is my suggested code faulty?
2. Should I place it in yet another event?
3. Is what I want not possible?
4. Should I just buy valium and go to sleep?
Kind regards and cuddles to whomever solves this...