Set a Field's Value so that it adds text to another field - InfoPath Dev
in

InfoPath Dev

Set a Field's Value so that it adds text to another field

Last post 03-31-2015 11:29 AM by kapil_kjoshi. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 03-30-2015 08:07 AM

    Set a Field's Value so that it adds text to another field

     I have a form set-up to enter a specific text message into a field based on the answer from another field. Example below.

     Field A is a free-from text field. Field B is "True/False" field with the condition that if the response is "True" then specific text of "This is Critical" is then written to Field A.

    This is working correctly however, if Field A already has text in it when Field B's question is answered it is wiping out the existing text and only writing the message "This is Critical" in Field A. So how do I append the text "This is Critical" into Field A?

  • 03-31-2015 07:53 AM In reply to

    Re: Set a Field's Value so that it adds text to another field

    Hi,

    In the rule to set the field, use Concatenate function. concate(yourfield,"This is Critical) in case of TRUE. If the your field is empty, it will show This is Critical, else it will add the text to it.

  • 03-31-2015 08:37 AM In reply to

    Re: Set a Field's Value so that it adds text to another field

     Thank you for the response. I have added the concat function and it is working fine. One follow-up question though. Is there anyway to put a hard return in front of the text "This is Critical" so that it is always at the beginning of a line rather than being added to the end of the last existing line?

  • 03-31-2015 11:29 AM In reply to

    Re: Set a Field's Value so that it adds text to another field

Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.