Append data from drop down to a text box - InfoPath Dev
in

InfoPath Dev

Append data from drop down to a text box

Last post 06-19-2012 02:33 PM by Michael Campbell. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-18-2012 10:47 PM

    Append data from drop down to a text box

    I have a drop down list which I want users to be able to select an item, click on a button and append that selection to another text box.  For example, as user selects green, clicks on the button, "Green" is appended to text box "My Selections".  They then select "Blue" and click on the button and "blue" is appended to the "My Selections" text box.  "My Selections" now shows "Greem", "Blue".  Any way of doing this without writing code?

    Filed under:
  • 06-19-2012 12:45 AM In reply to

    Re: Append data from drop down to a text box

    Created a new Infopath form.
     
    Placed drop-down-list, in "Drop Down List Box Properties":
    • Field name:  RGB 
    • "Entered choices manually" --> "Add...", 3 times 
      (with Value = "Display name"):
      • Red
      • Green
      • Blue


    Inserted textbox, in "Text Box Properties:"
    • Field name: MySelections 

    Selected the placed buttton --> Add Rule --> When This Button Is Clicked --> Set the field's value

    In "Rule Details":
    • Action: Set a field's value
    • Field: MySelections
    • Pressed fx (to the right of  Value:  textbox)  --> in "Insert formula:" pressed button "Insert Function..."  -->
      -  left pane: Text 
      - right pane: clicked concat

      Double-clicked 1st link "double click to insert field" --> selected RGB
      Double-clicked  2nd link "double click to insert field" --> selected MySelections
      Deleted 3d  parameter "double click to insert field" (with comma or virgula)   

      Eventual formula:
      concat(RGB, MySelections)
      OK -OK - Ok-ed

    Published - Run - Enjoyed 
    Gennady Vanin (Novosibirsk) --- Геннадий Ванин (Новосибирск)
  • 06-19-2012 02:33 PM In reply to

    Re: Append data from drop down to a text box

    Thanks for this.....it is exactly what I needed.

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