on 2007 Dec 01 7:30 PM
I have 2 radio button. If i pick one, 2 fileds on the form become hidden, if i pick the other, the 2 fields become visible. How I implement this?
I wrote a pseudo code, because I'm a beginner at this. Perhaps you can help me.
My code within a radio button should be sg. like this:
if $ == true then
item.#subform[0].HC_LIST.presence = "hidden"
item.#subform[0].HC_Field.presence = "hidden"
endif.
Questions: 1)$==true is faulty, how do I check the radio button?
2) I want to have 2 commands within the condition, do I have to use some symbol for that, like {} in Java?
Thanks,
Peter
Hi Per,
Give the actual path of the element instead of <b>$</b>.
i,e if u have an Input Field then the Path is to be givnn <b>(Which u will find in the top of the FormCalc Coding Area once u click on the UI Element)</b>.
if (<path of the RadioButton> == true) then
item.#subform[0].HC_LIST.presence = "hidden"
item.#subform[0].HC_Field.presence = "hidden"
endif
Regards
Poojith MV
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually I used a Javascript on the groupelem containing the radiobuttons.
if(this.rawValue == 1)
{
data.#subform[0].Manager_name.presence = "visible"
data.#subform[0].Manager_Name2.presence = "visible" }
else
{
data.#subform[0].Manager_name.presence = "invisible";
data.#subform[0].Manager_Name2.presence = "invisible"; }
I gues it would work just the same way in FormCalc.
User | Count |
---|---|
69 | |
8 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.