Display element based on condition; if input field is 'edited'

Hey experts!

I’m attempting to display this ‘Your information is not saved yet’ element IF any of these two input fields are modified from the current state - ‘modified’ as in typed/selected but not submitted to the database.

The intention is to warn the user that a change was made but not yet saved. In many cases the field will load with an initial value, the user will edit that value, but has not submitted the change…thus the goal here.

It seems possible but I’m clearly missing the right way to handle this type of condition.

Make a conditional statement that compares the current input value(you can find them in the formula explorer) and the init value that you provide

Good suggestion. Now, to figure out how to write this properly.

Would it require reloading of the page or a variable? Or will the condition apply immediately without an confirmation (meaning, if anything is typed, the condition will apply)?

It will display immediately

1 Like

Thanks @luka - got it working! For anyone else attempting something similar, this format works:

if([db value field]!=[input field], "Display", "")

[db value field] = is the dynamic variable from Xano, for example

[input field] = is the exact field name in WeWeb.

Was much simpler than I was trying to write.