This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SUPPORT Q&A - Form OnSelection Event

solidcad - Monday, November 3, 2008 8:27 PM:

Hi

I want to show a sub-form when i select a particualar product in a drop down list. How to write the field event for this?

How to create a method for the same? Appreciate any quick help on this.

 regards

sri 

 

 



RobMcAveney - Monday, November 3, 2008 9:35 PM:

The easiest way is to just hide/show individual fields based on the value of another field.  You can do this by attaching a Method as an OnFormPopulated Form Event (to handle the initial load) and also as an OnChange Field Event (to handle when the dropdown changes).  Take a look at the Document Form in the standard solutions database for an example.  The Show Class-Specific Fields method is attached both as a Form Event and a Field Event.  This method parses the value of the Type (classification) field and hides/shows fields based on name.  If your Form is a little more static, it may be easier to find the right span elements based on the ids of the Fields.

Good luck -

Rob