Jump to content
  • 0

"0" value when checkbox not selected


Question

5 answers to this question

Recommended Posts

  • 0

I'm assuming you're not using a Yes/No Data Type for the field since you can assign a value when checked.

I believe this can be done using simple Triggered Action

On Insert > Update #inserted > Field = 0 WHERE field not equal Y (or the value that you set for when the checkbox is checked)

In this example, I used a field with Text(255), but it should work for Number/Integer DataType, as well, just replace Y if you're using 1 for checked

image.png.cd8c06fbae2ee657f9b6b7104347275e.png

Link to post
Share on other sites
  • 0

Thanks for your help

The following (see image) eventually helps with one major problem: it is the previous record that gets updated ... any idea what I should do ?

Moreover, I cannot execute this for both "insert" and "update".  Here too, any idea ?

Thanks for your help.

 

image.thumb.png.a7bb654a55cd5f80b13b3f29b6321434.png

Link to post
Share on other sites
  • 0

Hi @Johan :) You can choose to fire the trigger both on update and insert. You just have to make sure you select both of them here: image.png.1754dde13fb653f373a805faa9f1622d.png

Also, for it to not update the previous record, please choose #inserted instead of the table itself ;) The #inserted table represents data that is being inserted or updated in the table. 

I hope this helps! 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...