User Form
Create custom input forms for manually-triggered Mechanic tasks — collect user input and pass it to your task code.
Last updated
Was this helpful?
Was this helpful?
{% # These will appear on the run task user form %}
{% assign big_event = options.the_big_event__date_userform %}
{% assign color_for_big_event = options.color_for_big_event__color_required_userform %}
{% # This will NOT appear on the run task user form %}
{% assign level = options.level__select_o1_low_o2_high %}
{% if event.topic == "mechanic/user/form" %}
{% # we need to get the value from user input, we don't want the value from the task option %}
{% assign big_event = input.the_big_event %}
{% assign color_for_big_event = input.color_for_big_event %}
{% endif %}
{% action "echo" big_event, level, color_for_big_event %}