Set a field value in a text box based on a drop down list box value - InfoPath Dev Sign in | Join | Help in Newbie Questions InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Newbie Questions » Set a field value in a text box based on a drop down list box value Set a field value in a text box based on a drop down list box value Last post 02-16-2009 09:20 PM by Jimmy. 3 replies. Page 1 of 1 (4 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 02-16-2009 07:43 PM cbrown00 Joined on 04-17-2008 Posts 66 Set a field value in a text box based on a drop down list box value Reply Contact I would like to have the value of a drop down list box drive the value of a text box. What formula can I use in the rule to get the drop down list box value in the text box? 02-16-2009 08:07 PM In reply to Jimmy Joined on 07-03-2008 Posts 2,595 Re: Set a field value in a text box based on a drop down list box value Mark as Not AnswerMark as Answer... Reply Contact No need to use a rule. If you just want to show the value of the dropdown box in the text box, just bind the text box to the same field as the dropdown box (you can do this by right-clicking a text box and selecting "Change Binding..." or by dragging the field onto your form. Jimmy Rishe / Software Developer / Microsoft MVPQdabra Software 02-16-2009 08:36 PM In reply to cbrown00 Joined on 04-17-2008 Posts 66 Re: Set a field value in a text box based on a drop down list box value Mark as Not AnswerMark as Answer... Reply Contact I did change the binding, but get a "i" saying that the text box needs to be in same section/group; it isn't. I would like the dropdown box value to appear in the text box; then user can add text to it. Will your approach work for that? 02-16-2009 09:20 PM In reply to Jimmy Joined on 07-03-2008 Posts 2,595 Re: Set a field value in a text box based on a drop down list box value Mark as Not AnswerMark as Answer... Reply Contact If you want to use the dropdown selection as a starting value for the text box's contents, you would probably want to have the text box bound to its own field (and not the dropdown box's field), and set the text box's default value (Data tab in the properties dialog) to be the field to which the dropdown box is bound. Jimmy Rishe / Software Developer / Microsoft MVPQdabra Software Page 1 of 1 (4 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.
I would like to have the value of a drop down list box drive the value of a text box. What formula can I use in the rule to get the drop down list box value in the text box?
No need to use a rule. If you just want to show the value of the dropdown box in the text box, just bind the text box to the same field as the dropdown box (you can do this by right-clicking a text box and selecting "Change Binding..." or by dragging the field onto your form.
I did change the binding, but get a "i" saying that the text box needs to be in same section/group; it isn't.
I would like the dropdown box value to appear in the text box; then user can add text to it. Will your approach work for that?
If you want to use the dropdown selection as a starting value for the text box's contents, you would probably want to have the text box bound to its own field (and not the dropdown box's field), and set the text box's default value (Data tab in the properties dialog) to be the field to which the dropdown box is bound.