Skip to content

Example: Progression

Richard Cowin edited this page Nov 28, 2023 · 1 revision

Example

{
    "when": "apply/",
    "source": "dom",
    "apply": [
        {
            "tag": "progression.value",
            "type": "number",
            "apply":[
                {"value": 0.48, "key": "form select.gfield_select", "on": "change"},
                {"value": 0.49, "key": "form .gform_next_button", "on": "click"},
                {"value": 0.92, "key": "form li:nth-child(-n + 6) input.medium", "on": "change"},
                {"value": 1,    "key": "form .gform_button", "on": "click"}
            ]
        },
        {
            "tag": "progression.any",
            "action": "event",
            "apply":[
                {"key": "form select.gfield_select", "on": "change"},
                {"key": "form .gform_next_button", "on": "click"},
                {"key": "form li:nth-child(-n + 6) input.medium", "on": "change"},
                {"key": "form .gform_button", "on": "click"}
            ]
        }
    ]
}