What placeholders are available when writing a rule helper for a native component?
I’ve seen from examples that there’s insert-item which places the data object into the script, but are there any others? I’m mainly interested in getting the item’s ID.
There are two place holders insert-item and insert-id.
Util.hasDescendants(Form.items['insert-id']) will convert to the following if used on an item with an id of "personalDetails"
Util.isBlank(insert-item) will convert to the following if used on an item with an id of "firstName"
insert-item is really all you need. To get the ID, you can use Form.getItemFromPath('insert-item').id