adding spaces and characters or building strings in text boxes

K

kueblaikhan

I have a field that gets populated based upon choices in a previous box. I
want this field to then add another string to the first based upon a choice
in a subsequent box. My problem is each time I have the second box try and
populate the field, the first choice is overwritten. I would like them
seperated by spaces.

Yes, I am very new to Infopath.
 
C

Chris K

I think I understand what you are trying to do.

I created 3 fields
Initial field
Second field
Third

The value of the 'Initial field' gets populated into the 'Second Field'.
What is in the 'Third' field then gets appended to what is alread in the
'Second Field'.

First assign the 'Second field' the valu that is in the 'First Field' using
a rule in the 'First Field'.

To get this to work, I put a rule in the 'Third' field so that if the field
is not blank then ...
Action = Set a field's value
Field = Second Field
Value = concat(Second_Field," ", Third_Field)

So if

Initial Field = Yes
Second field = Yes
Third field = A

Second field (then becomes) = Yes A

Hope that helps
Chris
 

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