Have a repeating field repeat its original value

Joined
Oct 22, 2014
Messages
26
Reaction score
0
I'm not sure how to implement this unusal feature. Trying to work from
a pre-determined (and faulty in my opinion :p) schema, where I have a
repeating section for different projects. But these series of projects
(within each form that will be filled out) all have the same charge
code.

Projects
---Project (repeating group)
---field1
---ChargeCode
---field3

Is there a way to allow the user to input the Charge Code in the first
iteration of the repeating section, then have it repeat the same value
for the rest of the projects??? The effect would be that the
ChargeCode value would appear in every single Project section in that
xml. I really need some help on this one. Thanks in advance!

Anthony
 
S

S.Y.M. Wong-A-Ton

Try using the following as the Default Value on the ChargeCode field:

.../preceding::my:ChargeCode[1]

How to set it?
1. Double-click on the ChargeCode field
2. Click on the "Insert Formula" button behind the "Default Value" field.
3. Select the checkbox "Edit XPath (advanced)" on the "Insert Formula"
dialog box.
4. Enter the expression in the "Formula" box.
5. Click on [OK] to close all open dialog boxes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top