Skip to Content
author's profile photo Former Member
Former Member

Formcalc question

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"


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?



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Dec 03, 2007 at 06:16 AM

    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"



    Poojith MV

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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" }



      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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.