- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi,
sorry for the delay.
If looked at your form and have the following improvements.
I did not understand the whole form logic, because it's quite complex and would take hours for me to figure out everything... so I cannot fix your first request here.
Anyway, here's what I can offer you so far:
Firstly, the counter can be created much much easier. You only have to count the number of instances of the repeated subform that surrounds your count field.
Therefore I would use the following FormCalc script in the calculate event of Provider_Index.
$.parent.parent.index + 1
Secondly the buttons script to add new instances of the Bottom_of_Form subform.
The actions builders script is way to complex and can be deleted.
Also delete the script in the buttons change event, it make no sense here.
Then add this FormCalc script to the buttons click event. Make sure you use FormCalc, because JavaScript does not allow wildcards like [*] to address all instances of an object!
EXP_Sample_Form._Bottom_of_Form.addInstance(1)
EXP_Sample_Form.Bottom_of_Form[*].presence = "visible"
; this part is only needed if the form will be used in Acrobat or Reader 7. Otherwise you can delete it.
if ($host.version lt
then
$form.recalculate(1)
endif
Hope this helps.
Views
Replies
Total Likes