Link to home
Start Free TrialLog in
Avatar of isadam_2
isadam_2

asked on

Change combobox values

I need to change the combobox values when a button is clicked, I get this information from another data base.
Do you know what is the code to add or remove this values,   or another way to do it???
ASKER CERTIFIED SOLUTION
Avatar of HemanthaKumar
HemanthaKumar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of qwaletee
qwaletee

Create a hidden field, computed for display, alows multiple values, named COMBOBOX_CHOICES

Change the ComboBox so it uses formula for choices, and enter COMBOBOX_CHOICES as the formula. Set it to refresh choices on document refresh.

Set the COMBOBOX_CHOICES field's formula to:
@If(@IsDocBeingLoaded; "First deafult choice" : "Second default choice" : "..." : "Last default choice"; COMBOBOX_CHOICES)

In your button, change the current value of COMBOBOX_CHOICES, then refresh the document.  The combobox will pick up the new choices that you set in the COMBOBOX_CHOCES field.