Support » Plugin: Forminator - Contact Form, Payment Form & Custom Form Builder » PayPal Visibility not accepting options

  • Resolved homemadejam

    (@homemadejam)


    Hello!

    I have a simple Select field with two options:

    1. Pay Online
    2. Pay via Check/SNAP

    What I would like is for the PayPal field to appear when the user chooses the “Pay Online” option. And for another Text field with a submit button to appear when the user chooses “Pay via Check”.

    Unfortunately, when I go to add a rule into the PayPal visibility setting, it will not accept either value. It keeps reverting to “Select an option” as if they aren’t valid options, despite being listed as such.

    I’ve tried deleting and recreating both the Select and PayPal forms. I’ve tried purging the cache. Nothing seems to help.

    Any advice would be most appreciated. I really like this plugin and if I can solve this issue I will be in love with it!

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Kasia – WPMU DEV Support

    (@wpmudev-support2)

    Hello @homemadejam ,

    I’m sorry about this issue.

    I have tested visibility rules of the PayPal field on my lab site and it was working fine with a select field.

    Can you export your form and share it with us so we can check it?

    kind regards,
    Kasia

    Thanks for the quick reply! Here you go:

    {"type":"form","data":{"fields":[{"id":"name-1","element_id":"name-1","form_id":"wrapper-4336-3114","type":"name","options":[],"cols":12,"conditions":[],"wrapper_id":"wrapper-4336-3114","field_label":"Name","placeholder":"","prefix_label":"Prefix","fname_label":"First Name","fname_placeholder":"E.g. John","mname_label":"Middle Name","mname_placeholder":"E.g. Smith","lname_label":"Last Name","lname_placeholder":"E.g. Doe","prefix":"true","fname":"true","mname":"true","lname":"true","required_message":"Name is required.","prefix_required_message":"Prefix is required.","fname_required_message":"First Name is required.","mname_required_message":"Middle Name is required.","lname_required_message":"Last Name is required.","required":true},{"id":"email-1","element_id":"email-1","form_id":"wrapper-8133-1326","type":"email","options":[],"cols":12,"conditions":[],"wrapper_id":"wrapper-8133-1326","validation":false,"placeholder":"","field_label":"Email Address","required":true},{"id":"address-1","element_id":"address-1","form_id":"wrapper-2982-2690","type":"address","options":[],"cols":12,"conditions":[],"wrapper_id":"wrapper-2982-2690","street_address":"true","address_city":"true","address_state":"true","address_zip":"true","address_country":false,"address_line":"true","street_address_label":"Street Address","street_address_placeholder":"","address_city_label":"City","address_city_placeholder":"","address_state_label":"State","address_state_placeholder":"","address_zip_label":"ZIP Code","address_zip_placeholder":"","address_country_label":"Country","address_line_label":"Apt, suite, etc","street_address_required_message":"This field is required. Please enter the street address.","address_zip_required_message":"This field is required. Please enter the zip code.","address_country_required_message":"This field is required. Please select the country.","address_city_required_message":"This field is required. Please enter the city.","address_state_required_message":"This field is required. Please enter the state.","address_line_required_message":"This field is required. Please enter address line."},{"id":"name-2","element_id":"name-2","form_id":"wrapper-5667-8100","type":"name","options":[],"cols":12,"conditions":[],"wrapper_id":"wrapper-5667-8100","field_label":"Share Partner Name","placeholder":"","prefix_label":"Prefix","fname_label":"First Name","fname_placeholder":"E.g. John","mname_label":"Middle Name","mname_placeholder":"E.g. Smith","lname_label":"Last Name","lname_placeholder":"E.g. Doe","prefix":"true","fname":"true","mname":"true","lname":"true","required_message":"Name is required.","prefix_required_message":"Prefix is required.","fname_required_message":"First Name is required.","mname_required_message":"Middle Name is required.","lname_required_message":"Last Name is required.","description":"(for splitting a full share with another household)"},{"id":"email-2","element_id":"email-2","form_id":"wrapper-3318-1937","type":"email","options":[],"cols":12,"conditions":[],"wrapper_id":"wrapper-3318-1937","validation":false,"placeholder":"","field_label":"Share Partner Email"},{"id":"textarea-1","element_id":"textarea-1","form_id":"wrapper-6659-5266","type":"textarea","options":[],"cols":12,"conditions":[],"wrapper_id":"wrapper-6659-5266","input_type":"line","limit_type":"characters","field_label":"Referrals","placeholder":"","description":"Did someone refer you to our farm? If yes, please share their name and contact information (mailing address & email) with us so that we can thank them!"},{"id":"radio-1","element_id":"radio-1","form_id":"wrapper-3936-9544","type":"radio","options":[{"label":"Mondays, 2:00-6:30pm","value":""},{"label":"Wednesdays, 2:00-6:30pm","value":""},{"label":"Saturdays, 9:00am-1:00pm","value":"","limit":"","default":false}],"cols":12,"conditions":[],"wrapper_id":"wrapper-3936-9544","value_type":"radio","field_label":"Please select a pickup day:","layout":"vertical","required":true},{"id":"radio-2","element_id":"radio-2","form_id":"wrapper-6994-6513","type":"radio","options":[{"label":"Small Share: Feeds 1-2 people per week, June-October: $420","value":""},{"label":"Medium Share: Feeds 2-4 people per week, June-October. This is our standard size, similar to shares offered in the past: $640","value":""},{"label":"Large Share: Feeds 4-6 people per week, June-October: $735 (This size is meant for larger households and for folks who want to split with another household. Our large share will always be divisible by two, allowing you and your share partner to pick up on different days and/or times as best fits your individual schedules.)","value":"","limit":"","default":false}],"cols":12,"conditions":[],"wrapper_id":"wrapper-6994-6513","value_type":"radio","field_label":"Please Select a Share Size and Price:","layout":"vertical","required":true},{"id":"checkbox-2","element_id":"checkbox-2","form_id":"wrapper-6595-678","type":"checkbox","options":[{"label":"I understand that by joining a CSA, I am committing to both the rewards and the risks inherent in farming.","value":""},{"label":"I understand that my share will be available for pick-up during the posted schedule. If there is a week that I am unable to pick up my share I will either arrange for someone else to pick it up or my produce will be donated to a local food pantry or soup kitchen.","value":""}],"cols":12,"conditions":[],"wrapper_id":"wrapper-6595-678","value_type":"checkbox","field_label":"CSA Agreement","layout":"vertical","description":"Please check both.","required":true},{"id":"paypal-1","element_id":"paypal-1","form_id":"wrapper-2319-5703","type":"paypal","options":[],"cols":12,"conditions":[],"wrapper_id":"wrapper-2319-5703","mode":"sandbox","currency":"USD","amount_type":"fixed","label":"checkout","color":"gold","shape":"rect","layout":"vertical","tagline":"true","locale":"en_US","debug_mode":"disable","height":"40","condition_action":"show","amount":"","width":"450"},{"id":"select-2","element_id":"select-2","form_id":"wrapper-6275-4151","type":"select","options":[{"label":"Pay Online","value":"","limit":"","calculation":"50.00"},{"label":"Pay by Check / SNAP","value":"","limit":"","calculation":"0"}],"cols":12,"conditions":[],"wrapper_id":"wrapper-6275-4151","value_type":"single","field_label":"Select Payment Method","calculations":"false","required":true}],"settings":{"pagination-header":"nav","paginationData":{"pagination-header-design":"show","pagination-header":"nav","page-break-1-steps":"Sharemember Information","page-break-2-steps":"CSA Share Choices","last-steps":"CSA Share Payment"},"formName":"On-farm Shares","version":"1.12.1.1","form-border-style":"none","form-padding":"","form-border":"","fields-style":"open","validation":"on_submit","form-style":"material","enable-ajax":"true","autoclose":"true","submission-indicator":"show","indicator-label":"Submitting...","form-type":"default","submission-behaviour":"behaviour-hide","thankyou-message":"Thank you for contacting us, we will be in touch shortly.","submitData":{"custom-submit-text":"Submit","custom-invalid-form-message":"Error: Your form is not valid, please fix the errors!"},"validation-inline":"1","form-expire":"date","form-padding-top":"0","form-padding-right":"0","form-padding-bottom":"0","form-padding-left":"0","form-border-width":"0","form-border-radius":"0","cform-label-font-family":"Roboto","cform-label-custom-family":"","cform-label-font-size":"12","cform-label-font-weight":"bold","cform-title-font-family":"Roboto","cform-title-custom-family":"","cform-title-font-size":"45","cform-title-font-weight":"normal","cform-title-text-align":"left","cform-subtitle-font-family":"Roboto","cform-subtitle-custom-font":"","cform-subtitle-font-size":"18","cform-subtitle-font-weight":"normal","cform-subtitle-text-align":"left","cform-input-font-family":"Roboto","cform-input-custom-font":"","cform-input-font-size":"16","cform-input-font-weight":"normal","cform-radio-font-family":"Roboto","cform-radio-custom-font":"","cform-radio-font-size":"14","cform-radio-font-weight":"normal","cform-select-font-family":"Roboto","cform-select-custom-family":"","cform-select-font-size":"16","cform-select-font-weight":"normal","cform-multiselect-font-family":"Roboto","cform-multiselect-custom-font":"","cform-multiselect-font-size":"16","cform-multiselect-font-weight":"normal","cform-dropdown-font-family":"Roboto","cform-dropdown-custom-font":"","cform-dropdown-font-size":"16","cform-dropdown-font-weight":"normal","cform-calendar-font-family":"Roboto","cform-calendar-custom-font":"","cform-calendar-font-size":"13","cform-calendar-font-weight":"normal","cform-button-font-family":"Roboto","cform-button-custom-font":"","cform-button-font-size":"14","cform-button-font-weight":"500","cform-timeline-font-family":"Roboto","cform-timeline-custom-font":"","cform-timeline-font-size":"12","cform-timeline-font-weight":"normal","cform-pagination-font-family":"","cform-pagination-custom-font":"","cform-pagination-font-size":"16","cform-pagination-font-weight":"normal","payment_require_ssl":"","submission-file":"delete","form_status":"publish","form_name":"on-farm-shares","cform-color-settings":"","honeypot":"1","expire_date":"1 October 2020","use_ajax_load":"1","use_donotcachepage":"1"},"client_id":null,"notifications":[{"slug":"notification-1234-4567","label":"Admin Email","email-recipients":"default","recipients":"making@homemadejam.org","email-subject":"New Form Entry #{submission_id} for {form_name}","email-editor":"You have a new website form submission: <br/> {all_fields} <br/>---<br/> This message was sent from {site_url}."}]},"status":"publish","version":"1.12.1.1"}

    Plugin Support Kasia – WPMU DEV Support

    (@wpmudev-support2)

    Hello @homemadejam ,

    Options in your select don’t have value:

    You need to add value and then use those values when creating visibility rules for your fields.

    kind regards,
    Kasia

    Hello Kasia!

    Thank you for the quick reply.

    I’m not sure what you mean here. Numerical values? Binary? Do I assign 0 to one option and 1 to another? How does work with the visibility rules?

    Thanks for any clarification you can offer.

    I set Pay Online to: 1
    And Pay by Check/SNAP: 0

    And then I set a rule for the PayPal field to Show when the Select field is set to Pay Online.

    Must still be doing something wrong because the Paypal field doesn’t appear at all, regardless of which selection is chosen.

    Any advice would be most appreciated.

    Plugin Support Nastia – WPMU DEV Support

    (@wpmudev-support9)

    Hello @homemadejam

    I trust you are doing well!

    I’m not sure what you mean here. Numerical values? Binary? Do I assign 0 to one option and 1 to another?

    The default values can be pay-online and pay-by-check.

    Must still be doing something wrong because the Paypal field doesn’t appear at all, regardless of which selection is chosen.

    I’m afraid conditional payment is not available yet in Forminator. When using PayPal hidden this field if a different option is selected will not submit.

    A similar set up can be achieved only with the Stripe payment gateway and calculation field.

    For this setup, please edit “Select Payment Method” field. Open Calculation tab, choose Enable option and assign 0 to Pay by Check/SNAP and your numeric final price to Pay Online. Please see this screenshot:
    https://take.ms/TZj9j

    Add a Calculations field. From Calculations tab click on “Add From Fileds” and add inside the Slecte field that edited above. Please see this screenshot:
    https://monosnap.com/file/LhQHAUXdYVXyumuXKNmYrO1NaqNIDN

    Replace the PayPal payment option with Stripe. Edit the Stripe field, open the Settings tab. Under Payment Amount choose Variable, where from a drop-down choose the Calculation field:
    https://monosnap.com/file/BxcCMQHSKekRgy2IEMUoaKQX7gppKW

    Hope this helps!

    Kind regards,
    Nastia

    I have entered the values and setup you recommended. It does not work. Even if someone chooses Pay by Check, the form continues to require that one enter a credit card number.

    It seems like perhaps this plugin is not able to achieve what I originally outlined in my request: “What I would like is for the PayPal field to appear when the user chooses the ‘Pay Online’ option. And for another Text field with a submit button to appear when the user chooses ‘Pay via Check’.”

    If it is not capable of achieving this, please let me know and I will seek an alternative. Thank you.

    {"type":"form","data":{"fields":[{"id":"name-1","element_id":"name-1","form_id":"wrapper-4336-3114","type":"name","options":[],"cols":12,"conditions":[],"wrapper_id":"wrapper-4336-3114","field_label":"Name","placeholder":"","prefix_label":"Prefix","fname_label":"First Name","fname_placeholder":"E.g. John","mname_label":"Middle Name","mname_placeholder":"E.g. Smith","lname_label":"Last Name","lname_placeholder":"E.g. Doe","prefix":"true","fname":"true","mname":"true","lname":"true","required_message":"Name is required.","prefix_required_message":"Prefix is required.","fname_required_message":"First Name is required.","mname_required_message":"Middle Name is required.","lname_required_message":"Last Name is required.","required":true},{"id":"email-1","element_id":"email-1","form_id":"wrapper-8133-1326","type":"email","options":[],"cols":12,"conditions":[],"wrapper_id":"wrapper-8133-1326","validation":false,"placeholder":"","field_label":"Email Address","required":true},{"id":"address-1","element_id":"address-1","form_id":"wrapper-2982-2690","type":"address","options":[],"cols":12,"conditions":[],"wrapper_id":"wrapper-2982-2690","street_address":"true","address_city":"true","address_state":"true","address_zip":"true","address_country":false,"address_line":"true","street_address_label":"Street Address","street_address_placeholder":"","address_city_label":"City","address_city_placeholder":"","address_state_label":"State","address_state_placeholder":"","address_zip_label":"ZIP Code","address_zip_placeholder":"","address_country_label":"Country","address_line_label":"Apt, suite, etc","street_address_required_message":"This field is required. Please enter the street address.","address_zip_required_message":"This field is required. Please enter the zip code.","address_country_required_message":"This field is required. Please select the country.","address_city_required_message":"This field is required. Please enter the city.","address_state_required_message":"This field is required. Please enter the state.","address_line_required_message":"This field is required. Please enter address line."},{"id":"name-2","element_id":"name-2","form_id":"wrapper-5667-8100","type":"name","options":[],"cols":12,"conditions":[],"wrapper_id":"wrapper-5667-8100","field_label":"Share Partner Name","placeholder":"","prefix_label":"Prefix","fname_label":"First Name","fname_placeholder":"E.g. John","mname_label":"Middle Name","mname_placeholder":"E.g. Smith","lname_label":"Last Name","lname_placeholder":"E.g. Doe","prefix":"true","fname":"true","mname":"true","lname":"true","required_message":"Name is required.","prefix_required_message":"Prefix is required.","fname_required_message":"First Name is required.","mname_required_message":"Middle Name is required.","lname_required_message":"Last Name is required.","description":"(for splitting a full share with another household)"},{"id":"email-2","element_id":"email-2","form_id":"wrapper-3318-1937","type":"email","options":[],"cols":12,"conditions":[],"wrapper_id":"wrapper-3318-1937","validation":false,"placeholder":"","field_label":"Share Partner Email"},{"id":"textarea-1","element_id":"textarea-1","form_id":"wrapper-6659-5266","type":"textarea","options":[],"cols":12,"conditions":[],"wrapper_id":"wrapper-6659-5266","input_type":"line","limit_type":"characters","field_label":"Referrals","placeholder":"","description":"Did someone refer you to our farm? If yes, please share their name and contact information (mailing address & email) with us so that we can thank them!"},{"id":"radio-1","element_id":"radio-1","form_id":"wrapper-3936-9544","type":"radio","options":[{"label":"Mondays, 2:00-6:30pm","value":""},{"label":"Wednesdays, 2:00-6:30pm","value":""},{"label":"Saturdays, 9:00am-1:00pm","value":"","limit":"","default":false}],"cols":12,"conditions":[],"wrapper_id":"wrapper-3936-9544","value_type":"radio","field_label":"Please select a pickup day:","layout":"vertical","required":true},{"id":"radio-2","element_id":"radio-2","form_id":"wrapper-6994-6513","type":"radio","options":[{"label":"Small Share: Feeds 1-2 people per week, June-October: $420","value":""},{"label":"Medium Share: Feeds 2-4 people per week, June-October. This is our standard size, similar to shares offered in the past: $640","value":""},{"label":"Large Share: Feeds 4-6 people per week, June-October: $735 (This size is meant for larger households and for folks who want to split with another household. Our large share will always be divisible by two, allowing you and your share partner to pick up on different days and/or times as best fits your individual schedules.)","value":"","limit":"","default":false}],"cols":12,"conditions":[],"wrapper_id":"wrapper-6994-6513","value_type":"radio","field_label":"Please Select a Share Size and Price:","layout":"vertical","required":true},{"id":"checkbox-2","element_id":"checkbox-2","form_id":"wrapper-6595-678","type":"checkbox","options":[{"label":"I understand that by joining a CSA, I am committing to both the rewards and the risks inherent in farming.","value":""},{"label":"I understand that my share will be available for pick-up during the posted schedule. If there is a week that I am unable to pick up my share I will either arrange for someone else to pick it up or my produce will be donated to a local food pantry or soup kitchen.","value":""}],"cols":12,"conditions":[],"wrapper_id":"wrapper-6595-678","value_type":"checkbox","field_label":"CSA Agreement","layout":"vertical","description":"Please check both.","required":true},{"id":"select-2","element_id":"select-2","form_id":"wrapper-6275-4151","type":"select","options":[{"label":"Pay Online","value":"pay-online","limit":"","calculation":"50.00","default":false},{"label":"Pay by Check / SNAP","value":"pay-by-check-or-snap","limit":"","calculation":"0","default":false}],"cols":12,"conditions":[],"wrapper_id":"wrapper-6275-4151","value_type":"single","field_label":"Select Payment Method","calculations":"true","required":true},{"id":"calculation-1","element_id":"calculation-1","form_id":"wrapper-7055-6461","type":"calculation","options":[],"cols":12,"conditions":[],"wrapper_id":"wrapper-7055-6461","field_label":"Calculations","placeholder":"E.g. Calculated Value","formula":"{select-2}"},{"id":"stripe-1","element_id":"stripe-1","form_id":"wrapper-8904-8552","type":"stripe","options":[],"cols":12,"conditions":[],"wrapper_id":"wrapper-8904-8552","field_label":"Credit / Debit Card","mode":"test","currency":"USD","amount_type":"variable","logo":"","company_name":"","product_description":"","customer_email":"","receipt":"false","billing":"false","verify_zip":"false","card_icon":"true","language":"auto","base_class":"StripeElement","complete_class":"StripeElement--complete","empty_class":"StripeElement--empty","focused_class":"StripeElement--focus","invalid_class":"StripeElement--invalid","autofilled_class":"StripeElement--webkit-autofill","variable":"calculation-1"}],"settings":{"pagination-header":"nav","paginationData":{"pagination-header-design":"show","pagination-header":"nav","page-break-1-steps":"Sharemember Information","page-break-2-steps":"CSA Share Choices","last-steps":"CSA Share Payment"},"formName":"On-farm Shares","version":"1.12.1.1","form-border-style":"none","form-padding":"","form-border":"","fields-style":"open","validation":"on_submit","form-style":"material","enable-ajax":"true","autoclose":"true","submission-indicator":"show","indicator-label":"Submitting...","form-type":"default","submission-behaviour":"behaviour-hide","thankyou-message":"Thank you for contacting us, we will be in touch shortly.","submitData":{"custom-submit-text":"Submit","custom-invalid-form-message":"Error: Your form is not valid, please fix the errors!"},"validation-inline":"1","form-expire":"date","form-padding-top":"0","form-padding-right":"0","form-padding-bottom":"0","form-padding-left":"0","form-border-width":"0","form-border-radius":"0","cform-label-font-family":"Roboto","cform-label-custom-family":"","cform-label-font-size":"12","cform-label-font-weight":"bold","cform-title-font-family":"Roboto","cform-title-custom-family":"","cform-title-font-size":"45","cform-title-font-weight":"normal","cform-title-text-align":"left","cform-subtitle-font-family":"Roboto","cform-subtitle-custom-font":"","cform-subtitle-font-size":"18","cform-subtitle-font-weight":"normal","cform-subtitle-text-align":"left","cform-input-font-family":"Roboto","cform-input-custom-font":"","cform-input-font-size":"16","cform-input-font-weight":"normal","cform-radio-font-family":"Roboto","cform-radio-custom-font":"","cform-radio-font-size":"14","cform-radio-font-weight":"normal","cform-select-font-family":"Roboto","cform-select-custom-family":"","cform-select-font-size":"16","cform-select-font-weight":"normal","cform-multiselect-font-family":"Roboto","cform-multiselect-custom-font":"","cform-multiselect-font-size":"16","cform-multiselect-font-weight":"normal","cform-dropdown-font-family":"Roboto","cform-dropdown-custom-font":"","cform-dropdown-font-size":"16","cform-dropdown-font-weight":"normal","cform-calendar-font-family":"Roboto","cform-calendar-custom-font":"","cform-calendar-font-size":"13","cform-calendar-font-weight":"normal","cform-button-font-family":"Roboto","cform-button-custom-font":"","cform-button-font-size":"14","cform-button-font-weight":"500","cform-timeline-font-family":"Roboto","cform-timeline-custom-font":"","cform-timeline-font-size":"12","cform-timeline-font-weight":"normal","cform-pagination-font-family":"","cform-pagination-custom-font":"","cform-pagination-font-size":"16","cform-pagination-font-weight":"normal","payment_require_ssl":"","submission-file":"delete","form_status":"publish","form_name":"on-farm-shares","cform-color-settings":"","honeypot":"1","expire_date":"1 October 2020","use_ajax_load":"1","use_donotcachepage":"1"},"client_id":null,"notifications":[{"slug":"notification-1234-4567","label":"Admin Email","email-recipients":"default","recipients":"making@homemadejam.org","email-subject":"New Form Entry #{submission_id} for {form_name}","email-editor":"You have a new website form submission: <br/> {all_fields} <br/>---<br/> This message was sent from {site_url}."}]},"status":"publish","version":"1.12.1.1"}

    Plugin Support Kasia – WPMU DEV Support

    (@wpmudev-support2)

    Hello @homemadejam ,

    It seems like perhaps this plugin is not able to achieve what I originally outlined in my request: “What I would like is for the PayPal field to appear when the user chooses the ‘Pay Online’ option. And for another Text field with a submit button to appear when the user chooses ‘Pay via Check’.”

    If it is not capable of achieving this, please let me know and I will seek an alternative. Thank you.

    I’m very sorry for the confusion on our side. At the moment this is not possible. That option should be available with the next version of the Forminator.

    kind regards,
    Kasia

    Plugin Support Nastia – WPMU DEV Support

    (@wpmudev-support9)

    Hello @homemadejam

    I hope you are doing well!

    We haven’t heard back from you for a while now so we’ve marked this ticket as resolved. If you do have any followup questions or require further assistance feel free to reopen it and let us know here.

    Kind regards,
    Nastia

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.