Skip to Content

Changing include text based on value in another field.


I have 12 different include texts for different reason codes associated with payment difference, I need to display the respective text on the form based on the value in the reason code field, I am trying to figure out how this can be achieved. I populated the Text name and reason code into 1 internal table and passed it to the form context. Please suggest.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 28, 2011 at 09:34 AM


    you can achieve this using script. Use the event "Initialize" and do your script there. This code snippet will help you:

    var name = "Hello " + $;

    this.resolveNode("result").dataNode.value = name;



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 28, 2011 at 01:54 PM


    I am new to adobe forms and have no idea on using scripts. Can you please elaborate if possible, I am not using a dropdown list for reason codes, it comes in from the interface and do i have to define all the include texts in the form context.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hello Kiran,

      If the number of reason codes are static then for the include text, in context mapping, in conditions tab declare the condition like

      reason_code = 1.

      Now, put 12 text fields one on another such that it overlapps.

      If chances are there that include texts may increase, I will give you the scripting code how to do it.

      Please let me know, if you need some scripting.



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.