Adobe LiveCycle ES 8.2 Add/Remove buttons with Subforms

307 views
Skip to first unread message

plvi...@gmail.com

unread,
Jan 23, 2014, 7:53:49 PM1/23/14
to live...@googlegroups.com

What I am trying to do:

A repeating subform that can be added or removed by clicking add/remove buttons.

What I did:

I created a repeating sub form, flowed content, initial count of 1 and max of 5.

I added buttons, opened the script editor and pulled several variations of the add/remove scripts from adobe.

My subform is called "SingleLanguage". All content is wrapped within the subform.

I've tried these scripts for add in the click instance for the add button (JavaScript):

_SingleLanguage.addInstance (1)

 

SingleLanguage.addInstance(true);

xfa.form.recalculate(true)

 

SingleLanguage.instanceManager.addInstance(true);

xfa.form.recalculate(true)

 

I've tried these scripts for remove in the click instance for the remove button (JavaScript):

_SingleLanguage.removeInstance(SingleLanguage.instanceIndex)

SingleLanguage.instanceManager.removeInstance(integer);

 

SingleLanguage.removeInstance(integer);

 

Then I run preview and the buttons do not work. Am I missing something?

  I also tried wrapping the remove button into the subform, to no avail.

Settings: Show Click, Language JavaScript, Run At Client

Help?

Brunaugh Family

unread,
Jan 24, 2014, 8:15:43 AM1/24/14
to live...@googlegroups.com
Make sure you are saving the form as a dynamic pdf.  Even if you have all settings and code correct, yet neglect  making the form "dynamic", the rows will not repeat.
--
You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to livecycle+...@googlegroups.com.
To post to this group, send email to live...@googlegroups.com.
Visit this group at http://groups.google.com/group/livecycle.
For more options, visit https://groups.google.com/groups/opt_out.

Howard Hayakawa

unread,
Jan 24, 2014, 1:38:18 PM1/24/14
to live...@googlegroups.com
Be sure to set the page contents to flow.  Not doing that will not prevent the code from running the result will look strange.


Ashok Deivasigamani

unread,
Jan 24, 2014, 1:48:39 PM1/24/14
to live...@googlegroups.com
give us your PDF and lets look into the subform heirarchy that you have employed

Regards -
Ashok D


--
You received this message because you are subscribed to the Google Groups "Adobe LiveCycle Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to livecycle+...@googlegroups.com.
To post to this group, send email to live...@googlegroups.com.
Visit this group at http://groups.google.com/group/livecycle.
For more options, visit https://groups.google.com/groups/opt_out.



--
Ashok Deivasigamani
Reply all
Reply to author
Forward
0 new messages