Reference selected record in :loads block for smart action

hello,

i was wondering if there was a way for me to reference the selected record in the :loads block for the smart action.

thank you!

Hello @huss,

You should be able to access the selected record with context[:record].

This is pretty well hidden in our docs in examples like this one: Prefill a form with default values

I’ll see if we can amend the doc to make it easier to find.

great thank you very much