C9.0 NT 7.35
I need to hide two fields from the form until another field is entered via a drop, and in the server side code for the drop, I look up the record for the selected drop field and do a SSV of a flag to indicate if the following two fields should be displayed for entry or not.
If I am opening an existing record, the template hide/unhide conditions for the two fields are followed. But, if inserting a new record, the fields are hidden (which would be correct until the drop down field is filled in). I do ask the templates to reset the two fields after the server side code that does the SSV of the control field. But, the two fields remain hidden.
The hide/unhide template entries for the two fields are:
Include: p_web.gsv('PCN:AllowFirstFruit') = 'Y'
Hide: p_web.gsv('PCN:AllowFirstFruit') <> 'Y'
Note - the PCN:AllowFirstFruit session value contains the correct value
So, what processes are needed to be followed to do this, what embeds are used to be able to redisplay the form with the new decision regarding hide/unhide after the drop field is selected.
Thanks,
Mike Springer