# Trigger binding AFTER other bindings

**URL:** <https://forum.inductiveautomation.com/t/trigger-binding-after-other-bindings/57145>\
**Category:** Ignition\
**Created:** [March 13, 2022, 2:11am UTC](https://forum.inductiveautomation.com/t/trigger-binding-after-other-bindings/57145 "2022-03-13T02:11:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [March 13, 2022, 8:02am UTC](https://forum.inductiveautomation.com/t/trigger-binding-after-other-bindings/57145/2 "2022-03-13T08:02:47Z")

</div>

Good question! According to answers in these two posts it's not possible.

> [@Disable bindings onStartUp](https://forum.inductiveautomation.com/t/disable-bindings-onstartup/53466/2):
>
> no not possible, you could use an onchangescript tho which can prevent the change from happening with a bit of code, but thats also not quite ideal beter would be to not open the popup on the default value i guess

> [@Dynamically enable or disable a binding in perspective](https://forum.inductiveautomation.com/t/dynamically-enable-or-disable-a-binding-in-perspective/41524/2):
>
> No, but a judicious use of an if / switch / case expression or a transform on the binding could give you a default value.

I'm surprise that the binding's `Enabled` property isn't available in script.

* * *

A possible work around is to put an IF statement into your query's WHERE statement and pass in the query "enabled" as a QueryString variable. In MySQL it looks like this:

```sql
SELECT <field1>, etc.
FROM <tablename>
WHERE IF({enabled} = '1', id > 0, id < 0)

```

I tested this by binding to a toggle switch with this binding:  
`if({../ToggleSwitch.props.selected}, '1', '0')`

In your case you might need to create a property on something with an expression that somehow detects that the dropdowns have been populated.

The binding will probably run once on view load but should be quick if you use a primary key in the IF statement. It will then execute again when the `{enabled}` querystring turns on.

---

_[View the full topic](https://forum.inductiveautomation.com/t/trigger-binding-after-other-bindings/57145)._
