CheckBox Conditions

Gravity Forms
3 July, 2020 17:35:19
umair.khan2313
Topics: 5
Messages: 56
Hy i am using e2pdf first time so kindly guide how can i apply condition on checkbox
The scenario is that i am using two checkbox and their value fills automatically by user input in my form i want to apply condition on third checkbox that it should be automatically YES if my two checkbox values are YES and if my two checkbox value are NO so it should be unchecked .
i have tried but not get success results please guide me procedure for this scenario.
immediate reply will be appreciated.
3 July, 2020 22:42:52
E2Pdf
Support
Topics: 7
Messages: 3156
Hi,

Can you please attach screenshots of Gravity Forms fields which is checked by user (Yes/No) as it can be different setup and it will affect conditions which must be prepared for 3rd field? (screenshot how we require to see fields attached). Thank you.

We remain at your service.


We would really appreciate your feedback at WordPress.org!
4 July, 2020 23:47:37
E2Pdf
Support
Topics: 7
Messages: 3156
To accomplish this task follow this steps.

1. Create 2 "radio" buttons if not created under your E2Pdf Template

2. Change properties for "radio" buttons:

2.1 For Yes "radio" button (screenshot 1):
Group: choice_group (can be custom value but same for 2 "radio" buttons).
Option: Yes
Value: No (it will be default)
Add Action:
Action: "Change" | Property: Value | Change: Yes | Apply If: All
Condition 1: If: {Choice 1:1} | Condition: = | Value: Yes
Condition 2: If: {Choice 2:2} | Condition: = | Value: Yes

2.2 For No "radio" button (screenshot 2):
Group: choice_group (can be custom value but same for 2 "radio" buttons).
Option: No
Value: No (it will be default)
Add Action:
Action: "Change" | Property: Value | Change: Yes | Apply If: All
Condition 1: If: {Choice 1:1} | Condition: = | Value: Yes
Condition 2: If: {Choice 2:2} | Condition: = | Value: Yes

* {Choice 1:1} and {Choice 2:2} must be to be replaced to your Field IDs and "Yes" under value can have different values, however to know which values exactly generated and which shortcode must be used under Condition 1 and Condition 2 you can just create "input" and map it via "Right Mouse Click" -> "Map" by choosing your checkbox values in "Visual Mapper".

We remain at your service.

We would really appreciate your feedback at WordPress.org!
5 July, 2020 19:02:57
umair.khan2313
Topics: 5
Messages: 56
Thankyou your support is amazing
this task has been done.
I need one more further assistance that how can i get values of another form
for example i have 2 forms form A and form B
i have select form A for autopdf
but i want some fields values from form B
Please reply me as soon as possible
5 July, 2020 23:26:27
E2Pdf
Support
Topics: 7
Messages: 3156
Unfortunately E2Pdf doesn't support multiple datasets merge to 1 PDF at this moment.

As a solution, you must be able to accomplish task by one of the following possibilities. However it will require knowledge of PHP:

1. Copy data from form B to form A entry on submission via Gravity Forms hooks to hidden fields for example.

or

2. Use "e2pdf_extension_render_shortcodes_value" filter inside functions.php: https://codeshare.io/5Xx6j8

Where 1 is the ID of Template, and 11 is the ID of E2Pdf Element field/html object. E2Pdf Element ID can be known by "Right Mouse Click" -> "Properties".

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