Reputation: 125
I have a autocomplete field:
I need to set the default value selected for this dropdown using another control value as shown in:
This control is passed to the form load as shown in:
For example if use cost center is 110
as shown in:
Then the default selected value of the Site lookup dropdown needs to be as shown in:
Upvotes: 0
Views: 377
Reputation: 31753
The tricky part is that your Site-Item
field isn't a dropdown but an autocomplete. An autocomplete doesn't know all the possible label/values, but can only find some label/values doing a search by label. So you can't tell an autocomplete "set your value to 110", because it doesn't know what the label corresponding to 110
is.
If you knew the label, you could do this programmatically with an fr-set-label
, but here you don't have the label but the value. You can read more about this in the section Setting by value. So, my advice is to use a Dynamic Data Dropdown instead of an Autocomplete field.
Upvotes: 1