since ‎15-07-2015
‎10-12-2019
venturacelia
Level 1
Re: Problems to concatenate two text fields (one field is blank)
Avatar

venturacelia

venturacelia
- Adobe LiveCycle
Hi.Yes, both are text fields.I tried with rawValue but I'm still getting the same result.Nothing is populated on the form.

Views

49

Likes

0

Replies

0
Re: Problems to concatenate two text fields (one field is blank)
Avatar

venturacelia

venturacelia
- Adobe LiveCycle
Hi Magus069.Thanks for your reply.I tried this but I'm still getting a blank value.If one of the fields are blank, I still need whatever is on the otherfield.E.g.:Line 1 is address line 1Line 2 is address line 2 If address line 2 is blank, I still need the address line 1 field to bepopulated on my form.Any suggestions?Thanks

Views

48

Likes

0

Replies

0
Problems to concatenate two text fields (one field is blank)
Avatar

venturacelia

venturacelia
- Adobe LiveCycle
Hi everyone,I'm having problems to concatenate two text fields.I found one way to concatenate the two text fields (this.rawValue = line1.value + " " + line2.value;), but it doesn't work if the 2snf field I am trying to combine is blank.The only way they seems to work is if I setup 2 invisible fields at the top of my form (1 for line1 and another one for line2) and then use the below line of code:if(xfa.record.line2.value != null){ this.rawValue = xfa.record.line1.value;} else { this.rawValue = x...

Views

313

Likes

0

Replies

4