
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);
SingleLanguage.instanceManager.addInstance(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?
--
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.
--
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.