Radio Conditions

Gravity Forms
9 August, 2020 16:57:20
ramsu
Topics: 7
Messages: 13
Hi,
Just started using e2pdf, great tool so far, but I cannot work out how to check a radio input on a PDF using conditions.

On a gravity form I have 2 number inputs:
- Number A
- Number B

The PDF template already has a fillable radio item, for "Pass" or "Fail", and if I open PDF manually in reader, I can tick either option.

I want to have a condition where if "Number A" < "Number B", the radio item "Fail" is ticked, otherwise if value is >=, then radio item "Pass" is ticked.

I right click on the "Fail" radio in PDF template, and see it has Option = 5, Value = Fail
Added an action as follows:
Order=0, Action=Change, Property=Value, Change=Fail, Apply If=Any
If={Number A:26}, Condition:<=, Value: {Number B:27}

But the radio item for fail never gets 'checked' in exported PDF.

I then tried removing the fillable radio options in PDF, and manually added Radio via e2pdf edit template PDF builder (e.g. drag and drop radio onto PDF).
But I couldn't get that to work either.

Any tips?
Thanks
9 August, 2020 20:43:09
ramsu
Topics: 7
Messages: 13
I managed to make the fillable radio buttons working in the PDF, by renaming each one, as their own group, and own option name.

So now the "Fail" radio in the PDF template, has Option=fail, value=no
And the action works as:
Order=0, Action=Change, Property=Value, Change=fail, Apply If=Any
10 August, 2020 03:23:36
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

Unfortunately it's happened due the value applied to whole "group" due the behavior of "radio" buttons so it will respect only last element condition.

If you still need to use same group name among 2 radio buttons, you can just add same actions to both "radio" buttons which will have different "Option" values to make it work.

We remain at your service.
We would really appreciate your feedback at WordPress.org!