There was a form that I wanted use the submit button to execute a Smartobject create method, but only if a check box was checked. The submit button worked prior to adding the check box, with the data populated my Smartobject. I'll show you what my issue is and how I solved it, I hope you can learn from my mistake.
I assumed the value of the check box was yes or no. Based on the icon next to the Data Type.
I created a rule that would execute the create method, when the button was clicked, if the value of the check box was Yes, like the icon.
The button did nothing, and it did not matter if the box was checked or unchecked.
It was suggested to me to check the value of the check box by adding a Data Label to transfer the check box data to. That way I can see what the check box was evaluating to.
I added the Data Label to my view with rules to transfer data from the check box "Checked" to the data label.
When the view is initialized or check box changes, then transfer data from the check box to the data label.
Then I can see what the value actually is!
The Data Label showed me that check box evaluates to "true" or "false" not "Yes" or "No"
I then changed the rule to When the check box contains a specific value "true" Then execute the Smartobject method.
The Form worked, and only submitted when the check box was checked, which was the goal.
If you ever need to know what the value of at item is, transfer the data to Data Label and you can see it.
I did delete the data label after I got the form working, but it was a really big help to show me what was going on.