Setting a bool variable in BDM on instantiation in form

After searching and reading all sorts of posts on this topic, I’m still at a total loss …

I have the requirement of filling some fields in my BDM upon start of a process based on an initial form. With “regular” data fields like text, date or integer I’m fine so far, but for either a select or boolean/checkmark field I have no idea how to convert the actual form input to the value in the the database.

The documentation is pretty “thin” as far as this is concerned …

Hello,

At initialization time, you can use a "groovy" script. Then, initialize your value via a groovy script, transforming your Input in a Boolean.

Hope this help