- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
I believe it is related to the initialization of the sub-form and how the instance manager interprets the sub-form count. The 'count' property on the instanceManager is the current number of instances of the sub-form. As you add instances of the sub-form the 'count' increments and it is exposed as an incrementing sequential number. However, after saving-closing-opening the form, the count is not relevent until you add another instance.
Try the property 'instanceIndex' and assigning the caption as follows:
// prospectus.page1.step1.ObjectivesSubform.Objectives.Objective::initialize - (JavaScript, client)
var cnt = Objectives.instanceIndex + 1;
xfa.resolveNode("Objectives.Objective.caption.value.#text").value = cnt + ":";
Steve
PLEASE NOTE THERE ARE PROBLEMS ON THIS FORM I DID NOT HAVE A CHANCE TO LOOK AT.
Views
Replies
Total Likes