Workflow Soluiton

 View Only
Expand all | Collapse all

how to set required property of a webform component based on the selection of a dropdownlist

  • 1.  how to set required property of a webform component based on the selection of a dropdownlist

    Posted Nov 23, 2010 02:51 PM

    Hi,

    I created a webform with a dropdownlist and a textbox. What i want to do is when the use select "Other" in the dropdownlist, the textbox shows up and require the user to enter something in it; otherwise, textbox is hided and optional.

    Please educate me how to implement this feature?

     

    thanks,

    Elaine



  • 2.  RE: how to set required property of a webform component based on the selection of a dropdownlist

    Posted Dec 04, 2010 12:32 PM

    In your drop down component, select the Post Form on Value change.

     

    In your Text box, make the Visible into a Process Defined, and use an Equals rule - when your Drop Down list variable name (it will be under This Form Data) equals Other, make it visible.

     

    AS for validation, it's hard to do text box validation based on another variable, so I usually check the length of the text box after exiting the form. if the length is less than 2 or 3 characters, I redirect them back to the form and unhide an error box...

     

     

    rob