Toggle button doesn't change dataype field's default value from No to Yes

Hey!

A user can mark a book as ‘recommended’ while creating a post, for which I have provided a toggle button.

I have created a field ‘recoe’d book’ as yes/no in the ‘post’ datatype to save recommended entries:

image.png

When a user is checking the toggle button, and clicking the ‘publish’ button to save the post, I have created a workflow to 'change the value to ‘yes’

image.png

image.png

All the workflows in this ‘publish’ element are getting executed, except this one.

When I do a test post, I see that in the database, instead of the value being ‘yes’ it is blank:

image.png

Can anyone help me figure out why is the value not getting registered?

This topic was automatically closed after 70 days. New replies are no longer allowed.