cancel
Showing results for 
Search instead for 
Did you mean: 

Making Subform invisible or visible

Former Member
0 Kudos

Hi ,

I wanted to make a subform visible or invisible on selecting a radiobutton.

I tried using

<subformname>.presence = "invisible";

in the click event of radiobutton , but its not working.

Please suggest a solution.

Points will be rewarded.

Thanks.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

I tried using the above given solutions ..

even giving the entitre path to the field ...

but it didnt wrk ...

Finally i got all fields in a single subform ... and there it wrked perfectly ....

Can anyone plss help or tell me why this happenned

Former Member
0 Kudos

Hi Thomas,

If subform and radio button are in a single form,then just by referrring single form.subform.presence = "INVISIBLE" in click event of the radio button it should work.

But if radio button and subform are in completely diffent form then you have add FORM name too i.e formname.subform.presence = "INVISIBLE"

Regards,

Prakash

former_member214651
Active Contributor
0 Kudos

Hi Thomas,

Use the following piece of code in the script (select language as FormCalc) Area for the particular field which has to be made visible or Invisible :-

<Top most Subform Name>.<Subform Name>.<field name>.presence = "hidden / visible / Invisible";

debasish_panda
Explorer
0 Kudos

Hello Thomas,

You can use the following pattern of the Scripting to hide subforms.

<formName>.<Subform Name>.presence = "hidden";

few important points to remember :

1. use scripting language as 'Java Script'

2. write the script under 'initialize' mode and the Run at option should be set to 'client'.

Hope, this helps in resolving your issue.

Regards,

Debasish

former_member214651
Active Contributor
0 Kudos

Hi Thomas,

Use the following piece of code in the script (select language as FormCalc) Area for the particular field which has to be made visible or Invisible :-

<b><Value Node Name>.<Subform Name>.<field name>.presence = "hidden / visble / Invisible";</b>

Former Member
0 Kudos

How can I condition a new subform and text to print when no components found for a production order. My question is general as i want to know best practice.

I tried to use field HEADER-KTEXT that I filled with text when I read no valid components but it never printed the new value for KTEXT even though when in debug I saw the new text was there when the function gv_fm_name was called to pass data to form.

I would have preferred to condition text in form alone using formcalc but I got nowhere.

Sorry but I could not make sense of posting "Make visible an element of Interactive Form".

Former Member
0 Kudos

Hi Thomas,

In the click event of your radiobutton, you can use the following script:

<subform1>.presence = "invisible";

OR

<subform1>.presence = "hidden";

Make sure that you have given the correct subformname.

Hope this helps.

Former Member
0 Kudos

Hi Melwyn ,

Thanks for your reply.

I tried using the solution you suggested and also checked the subform name.

But it doesnt work ..

The subform doesnt follow the visiblitiy given.i.e doesnt become invisible.

Is there any other way ?

Or what am I doing wrng ...

Former Member
0 Kudos

Hi Thomas,

Refer this http://www.adobe.com/devnet/livecycle/articles/AddingRemovingSubforms.pdf

Hope it helps.

Thanks and Regards,

Amit

Former Member
0 Kudos

You use the right event ?

Former Member
0 Kudos

Actually i am new to adobeforms and dont know much ..

I tried the click and change event ...

but didnt work ...

Can you suggest the event or any way to have the desired output