cancel
Showing results for 
Search instead for 
Did you mean: 

Formcalc question

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member214651
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Answers (0)