Table MultiSelect field default value from UI

Hi everyone,

I’m trying to set a default value for a Table MultiSelect field directly from the UI (e.g., Customize Form), so a system admin can manage it without touching the code.

My field is nationalities_husband, and it links to the “Nationalities Details” DocType (as set in the ‘Options’).

I tried adding “US” to the ‘Default’ text area in the field properties, as seen in the screenshot, but it doesn’t seem to work. I suspect this is because the field expects a list of linked records, not a simple string.

Is there a correct way to set a default list of selections for this field type without using a custom script? For example, I’d like the field to be pre-populated with specific nationalities (like ‘US’, ‘UK’, etc.) when a new document is created.

Thanks for your help!

Nope, you cant prepopulate childs with field meta. Use client/server script