Showing results for 
Search instead for 
Did you mean: 
Not applicable

Add new option to option set dynamically by javascript using model driven form

Hi All,

I have created an empty option set called Clients. 


Created a field with datatype as option set and selected Clients option set in EntityA.


I have dynamically added items into empty option list in Main information form using javascript:

what i mean:

client and country both are linked in different entity, data is:

client name      country name

client1 US

client1 Singapore

client2 Dubai


Main information form of EntityA:

Client Name: client1 (look up field)

Country List: US


Here US and Singapore values are dynamically added through Client Name textbox change event.

But when i try to save it is throwing an error as globally it does not have any items.


Please suggest me here.


Thank you. 

Community Support
Community Support



I am not quite certain how to achieve the functionality you are trying to get here. If you are trying to suggest an idea then maybe it would be better to make a post about it in our idea's form which I will like below; If you are trying to find a work around to this unfortunately I am not certain how to do this. You can always try creating a Microsoft Support case if you would like to go down that route. I'll include a link on how to create a case with them too.


If you would like to create a ticket with Microsoft Customer Support here is a link on how to do so:








Community Support Team _ Alex Rezac
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (2,591)