cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding a subform based on a conditon

Former Member
0 Kudos

Hi Folks,

           I have two subforms on a page and need to display either of it based on a import parameter.

           Could any body help me with the sample code of FormClac Script for the same.

           Thanks in advance,

             Shyam.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Shyam,

it's like this:

if ( $record.(parameter name) == "X(or what ever)" ) then

  $.presence = "hidden"

endif

Cheers.

Tao

Former Member
0 Kudos

Hi Tao Lin,

                 Thanks for the response.

                 I have tried with the code mentioned by you, but its still not working.

                 I have written the code in initialization event of subform.

                 I have declared the parameter as import parameter.

                 Do i need to define it in Global parameters or in initialize event ? Please suggest.

Thanks in advance,

Shyam.

Former Member
0 Kudos

Hi Tao Lin,

                Thanks for the reply. Its working now.

                I just removed the braces for parameter name and tried. Its working fine. Thanks.

Shyam.

Former Member
0 Kudos

Hi Shyam,

you should use event "form ready".

Cheeers.

Tao

Answers (0)