How to set form values from a modal in UI Builder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2025 03:10 AM
I've managed to create a modal popup in my new workspace. It asks for two values and then I want to set those, and others on the underlaying form (it's a change) and then save it. For the life of me I'm unable to work out how to do this. There's an event that allows you to set a form value, but I can't find anything to bind the values to. If I look at the data resource, there's no fields. And I can't even find the modal on anything in the bind dialogue.
Any pointers would be more than appreciated!
Many thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2025 12:16 AM
Hi @spike ,
Add client script on that inputs to gather values and store them into state. Add OOB Update Record Data Resource and call it via another client script that will be attached to your Save button on modal. Add Refresh Record event on success of Update Record data resource.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2025 03:21 AM
While I've not done exactly this it has kinda pointed me down the right road. I have updated Client State Parameters when the values on the modal change. Then when OK is hit I use those to update the fields on the form. The sticking point has been finding the field name. I was trying to bind the field. However it turns out you can just put the field name into the event box and that works. Doesn't feel right but it works so I'm going with it!