Hidden fields become visible in new instance of subform.


hello all.

 

i have following issue:

 

i have subform checkbox , text field.  when box checked, text field visible.  when unchecked it's hidden. 

 

i have button adds instance of subform.  when click , add subform, hidden text field visible in new instance instead of remaining hidden until box checked.  also, when add new subform instance , check box, hidden field becomes visible in first instance of subform.

 

here's i'm using hide , unhide fields:

 

if(this.rawvalue==1)

(form1.subform1.textfield1.presence="visible");

else

(form1.subform1.textfield.presence="hidden");

 

the above in both change , initialize events.

 

i appreciate in learning how keep each instance affecting another, how keep fields hidden in newly added instances of subform.

 

thanks in advance.

j

hi,

 

you can add action checkbox control achieve workflow. can right click on checkbox control under hierarchy panel , click on "add action". if want field hiddedn in new instance @ design time should set property of control hidden.

 

steps achieve workflow.

 

1. right click on checkbox control --> click on actions --> add action

2.select dropdown. when checkbox unchecked.

3. set visibility of textfield hidden.

 

4 click on add new action shown below.

addaction.png

5.select dropdown. when checkbox checked. 

6. set visibility of textfield visible.

7. click on ok create actions , close action window.

 

to set textfield hidden select textfield , open object property. set presence value hidden.

 

************

please download sample file https://acrobat.com/#d=hm8oyp3be4o3hrbt14ckyg



More discussions in LiveCycle Designer


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support