Simple Explanation of Radio-Buttons

Formidable Forms
11 November, 2021 01:57:52
spieler
Topics: 3
Messages: 11
I'm just searching for a how to mapping radio-buttons. Maybe i'm just to blind.

Can you please give me a hint?
11 November, 2021 02:57:20
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

For "Radio" buttons there are 3 settings:

- "Group" - must be same for all radio buttons in same group.
- "Option" - is the value for needed "radio" button.
- "Value" - is the value to compare with. Itwill be the same for all the "Group" as only 1 radio button can be checked from same group. It will modify "Value" automatically for all created "radio" buttons under same group.

Radio button will be checked if "Option" will equal rendered "Value".

Screenshot 1.

For "Checkbox" buttons there are 2 settings:

- "Option" - is the value for needed "checkbox" button.
- "Value" - is the value to compare with.

Checkbox will be checked if "Option" will be in comma separated rendered "Value" or will equal "Value".

Screenshot 2.

P.S. Usually "Visual Mapper" must set correctly the "Group" / "Option" and "Value" if you are using "Visual Mapper" via "Right Mouse Click" -> "Map" but in some cases it could be required to set "Value" or "Option" manually my modifying field properties "Option" or modify "Value" to output "Labels" or "Values" as [123 show="label"] / [123 show="value"]. To debug which value do you get upon PDF generation you can just use created "textarea" inside E2Pdf Template with same "Value" which is set under "checkbox" / "radio".

We remain at your service.
We would really appreciate your feedback at WordPress.org!
11 November, 2021 03:47:35
spieler
Topics: 3
Messages: 11
Hi E2 :-)

My problem was that i was mapping a select field to radio-buttons ...

... from radio to radio it is easy!

Is a Mapping from a select field to a radio-button possible?

Jörg
11 November, 2021 04:54:13
E2Pdf
Support
Topics: 7
Messages: 3163
You need to follow the logic described above and manually modify the "Option" as by default it will set all "Dropdown" options to "Radio" button where must be only one. So you can just leave the option by which "radio" button must be checked.

1st Screenshot is how "Radio" button mapped if you use "Dropdown" with "Visual Mapper".
2nd Screenshot is how "Radio" button must be corrected.

For 2nd "Radio" button "Option" must be set as "Option 2", for 3rd "radio" button "Option" must be set as "Option 3". In your case it will be other different values.

We remain at your service.


We would really appreciate your feedback at WordPress.org!
11 November, 2021 05:08:56
spieler
Topics: 3
Messages: 11
I've tried this like that but it doesn't work. Even Test-Textarea is empty.

Now i see all dropdown-formidable fields empty if i map them on a Textarea.
11 November, 2021 05:13:25
E2Pdf
Support
Topics: 7
Messages: 3163
Are you sure that entry which you are trying to export has this data?

If you map dropdown formidable form field to "textarea" it must be only [123] as "Value" where 123 is the Field ID.

When you export data via "E2Pdf" -> "Export" or on submission pdf generation link, you must see dropdown value which is choosed in this textarea.

We would really appreciate your feedback at WordPress.org!
11 November, 2021 05:24:24
spieler
Topics: 3
Messages: 11
Please see my screenshots. Is there something wrong?
11 November, 2021 05:42:18
E2Pdf
Support
Topics: 7
Messages: 3163
The setup looks correct however:

Is it old entry or new one? As if it was added the field to current Formidable Form after "test" entry was submitted (even with same name) - it will not work. Can you try to submit the new entry please and check if it will be printed value?

If it still will not work with new entry try to set the field as [51 show="value"] / [51 show="label"] and check if something will be changed.

We would really appreciate your feedback at WordPress.org!
11 November, 2021 05:59:21
E2Pdf
Support
Topics: 7
Messages: 3163
Here is also small video example how it must work: https://www.youtube.com/watch?v=ydDuSQEvoXk
We would really appreciate your feedback at WordPress.org!
11 November, 2021 06:39:45
spieler
Topics: 3
Messages: 11
With a new field it works!
14 November, 2021 05:42:49
spieler
Topics: 3
Messages: 11
Thx again for your support.

Another question:

I want to check a checkbox if different formidable-radio-options are set.

Example:

Formidable:
if one Radio-Button-Option of 1, 2 or 4 is set ... not 3 or 5

E2PDF:
the checkbox will be marked as checked.
14 November, 2021 07:59:39
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

You must be able to use "Actions" and "Conditions" in this case.

For example:

You can create custom "checkbox" and set "Option" to some "Value", for example "On". With "Actions" and "Conditions" change "Value" to "On" only if some conditions meet: if "Radio" button ([123] - Field ID) will be rendered as 1, 2 or 4. Screenshot attached.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
15 November, 2021 00:00:26
spieler
Topics: 3
Messages: 11
Great, it works.

What doesn't work was "separated values" "getrennte Werte verwenden".

I'm happy to have such a support.