How to change a value of a check box

Help Desk ›› How to ›› How to change a value of a check box
26 April, 2021 23:09:19
mmelendez
Topics: 1
Messages: 3
Would it be possible to change the value of a check box using Add Action - to where instead of a checkmark it would be changed to some text

Action: Change
Property: Value
Change: F
If:???
Condition: =
Value:[1599:2]
27 April, 2021 05:35:09
E2Pdf
Support
Topics: 7
Messages: 3335
Hi,

If we understand correctly you need to change text in some field/element if some checkbox checked. If so, then it must be used condition as follow on field where must be done change:

Action: Change
Property: Value
Change: Changed Value (It will be changed to this if "Action" fired and "Condition" met).
If: [105] (Here we use shortcode which renders the checkbox value)
Condition: LIKE (It must be used "Like" as checkbox usually rendered as Option 1, Option 2, Option 3, so we need to detect "part" of string)
Value: Option 1

So this action will change "value" inside field to Changed Value if [105] will contain Option 1 in rendered value. Screenshot attached.

If it will not work, attach please some screenshots with setup and result which you get.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
27 April, 2021 14:34:48
mmelendez
Topics: 1
Messages: 3
So what i'm trying to do, when someone clicks on a formidable form to say the Gender/Sex from Male to Female in a checkbox, what i receive in e2pdf is just a checkmark instead of it saying Male or Female.

I made these changes in the attachments but it doesn't seem to be working, one returned the same checkmark and the other one returned a blank value.
27 April, 2021 15:03:26
E2Pdf
Support
Topics: 7
Messages: 3335
It looks like you are trying to print text inside "checkbox" instead of "input". Replace it please with "input" (Screenshot attached) and apply action, checkbox can be only checked/unchecked.

When you use [1599:1] as "value" inside "input", is it renders as "Female"?

We remain at your service.
We would really appreciate your feedback at WordPress.org!
27 April, 2021 15:12:24
mmelendez
Topics: 1
Messages: 3
Simple enough, that worked. Thank you very much