Adjust columns of form within `createOptionForm()` method

Hi,

I'm allowing the creation of records "on the fly" by using the createOptionForm() method on a Select form field, and it's functionally working well. However, I'm struggling to enable a multi-column layout of the fields in this form compared to the original/"parent" form. I have attached screenshots of both forms. As you'll see, the "parent" form is formatted as desired, but applying the same column rules to the fields for the createOptionForm() doesn't have the same effect.

I would very much appreciate any ideas on how this can be adjusted!

Thanks in advance. ๐Ÿ™
CleanShot_2024-05-11_at_21.22.092x.png
CleanShot_2024-05-11_at_21.25.012x.png
Solution
Wrap the modal formโ€™s fields in a Grid layout component and apply your settings to that.
Was this page helpful?