The CreatorCon Call for Content is officially open! Get started here.

How to get checkbox variable in workflow?

cgedney
Giga Guru

I have several checkboxes on a catalog form.

cgedney_0-1678480809001.png

When I submit the form, I want to be able to see if the checkbox has been checked in the workflow. I was under the impression that I just need to check to see if current.variables.chkboxname == 'true' would work.

cgedney_1-1678480895570.png

 

What I am getting is "undefined". I checked to make sure I am pulling all of the variables in the catalog task. What am I missing?

Thank you, Charles

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

Hi,

In your workflow, you can use an if activity and just use the builder to check variable values without scripting and then use the yes or no path from the if activity to go do whatever it is you need to do.

 

Anyways, for your issue here, your field name is not spelled correctly, per your screenshot it's chbx_6month not chbx_6mo so you have a typo.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

2 REPLIES 2

Allen Andreas
Administrator
Administrator

Hi,

In your workflow, you can use an if activity and just use the builder to check variable values without scripting and then use the yes or no path from the if activity to go do whatever it is you need to do.

 

Anyways, for your issue here, your field name is not spelled correctly, per your screenshot it's chbx_6month not chbx_6mo so you have a typo.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Just noticed it was 6month instead of 6mo when I saw your comment. Thank you Allen.