Dmx-hide not working on var value

Simple problem:
1 I have a variable 'local_status' which is set to 'edit'
2 I want to hide the anchor button 'cancel_btn' when the var is set to edit.

image
image

a href="#" class="btn btn-dark mr-lg-4 style75" id="cancel_btn" dmx-hide="local_status.value==edit">Cancel <

This doesn't work an ideas why?

if you go into code view on the app binds have you added quotes around edit its a string not a number

dmx-hide="local_status.value == 'edit'"

1 Like

OOps yep just seen it Thanks :slight_smile: