I have a Drop-down field in InfoPath form. When Drop-down field is loaded I want to set the first item of the Drop-down field to a text field. Any one knows how to set first item of the Drop-down field to a text field?
If your question means, you need the users to enter their values into Drop Down List you can't do that, while there's another control combo box.
Combo box Enables users to either select a predefined value from a list of choices or type their own value, but this control cannot be displayed in a Web browser forms.
so When you design a browser-compatible form template, combo box controls are unavailable.
you can Show\hide a text box based on a drop down list value, meaning for example if user selects "Other" a text box will Show in the form to allow users to enter their values.
Check out this link Hide a control based on values on the form
If your question means , that on the page loading you need to set the text box value with the default selected item in the drop down List , try the below:
- on the ribbon , select DATA tab
- click on form Load
- in the Rules window click New->Action rule
- In the rule's Run these action ->Add->Set a field's value
- set the text box field = drop down field
My question was to get first item out from drop-down and show it in the textbox Mar 8, 2018 at 14:17
1@SivakumarPiratheeban do you mean when user selects a value , should this value be set to the textbox? or you mean from the start before selecting the drop down ?– A.SaéedMar 8, 2018 at 15:15
From the start before selecting the drop down Mar 8, 2018 at 15:34
1@SivakumarPiratheeban check the answer update– A.SaéedMar 8, 2018 at 15:34