
Announcements
Hi!
I am developing PCF that calls webservice method, retrieves accounts from a database and displays them in a dropdown - search as you type functionality.
When user selects account in a dropdown, I would like to display the value of selected option in Account Name Field.
For example - user choose account "Euro Start d.o.o.", so I would like to ONLY display string "Euro Start d.o.o." in field Account Name. User then decides if he would like to save new account with account name "Euro Start d.o.o." or no.
Is it possible to achieve that and how? 😄
Kind regards,
Tjaša
Hi @tzalar91 ,
If I get it right, you would need to make your PCF type "field", and register it on your "Account Name" field. So actually you don't need the "Search" control on the form ; you could use autocomplete or a search icon/button inside your PCF). The PCF would have a functionality to retrieve the accounts from the webservice, and show them when you search. When the account is chosen, the PCF just reports the name back to the runtime, and will be automatically saved together with the form.
Hope it helps.
Kind regards,
Diana