adczk

Forminator - show field if one number field is greater/less than another

Dec 12th, 2022
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.25 KB | None | 0 0
  1. {"type":"form","data":{"fields":[{"id":"number-1","element_id":"number-1","form_id":"wrapper-3630-3900","parent_group":"","type":"number","options":[],"cols":"12","conditions":[],"wrapper_id":"wrapper-3630-3900","calculations":"true","limit_min":"0","limit_max":"10","field_label":"Number","placeholder":"E.g. 10","precision":"0"},{"id":"number-2","element_id":"number-2","form_id":"wrapper-8927-3394","parent_group":"","type":"number","options":[],"cols":"12","conditions":[],"wrapper_id":"wrapper-8927-3394","calculations":"true","limit_min":"0","limit_max":"10","field_label":"Number","placeholder":"E.g. 10","precision":"0","formid":"wrapper-8927-3394"},{"id":"calculation-1","element_id":"calculation-1","form_id":"wrapper-1446-7384","parent_group":"","type":"calculation","options":[],"cols":"12","conditions":[],"wrapper_id":"wrapper-1446-7384","field_label":"Calculations","formula":"{number-1}/{number-2}"},{"id":"html-1","element_id":"html-1","form_id":"wrapper-8716-4918","parent_group":"","type":"html","options":[],"cols":"12","conditions":[{"element_id":"calculation-1","rule":"is_less","value":"1"}],"wrapper_id":"wrapper-8716-4918","field_label":"HTML","variations":"<p>Number 1 &lt; Number 2</p>"},{"id":"html-2","element_id":"html-2","form_id":"wrapper-1215-7552","parent_group":"","type":"html","options":[],"cols":"12","conditions":[{"element_id":"calculation-1","rule":"is","value":"1"}],"wrapper_id":"wrapper-1215-7552","field_label":"HTML","variations":"<p>Number 1 = Number 2</p>","formid":"wrapper-1215-7552"},{"id":"html-3","element_id":"html-3","form_id":"wrapper-4576-5354","parent_group":"","type":"html","options":[],"cols":"12","conditions":[{"element_id":"calculation-1","rule":"is_great","value":"1"}],"wrapper_id":"wrapper-4576-5354","field_label":"HTML","variations":"<p>Number 1 &gt; Number 2</p>","formid":"wrapper-4576-5354"}],"settings":{"pagination-header":"nav","paginationData":{"pagination-header-design":"show","pagination-header":"nav"},"formName":"test","version":"1.21.0","form-border-style":"none","form-padding":"","form-border":"","fields-style":"open","validation":"on_submit","form-style":"default","enable-ajax":"true","autoclose":"","submission-indicator":"show","indicator-label":"Submitting...","form-type":"default","submission-behaviour":"behaviour-thankyou","thankyou-message":"Thank you for filling out the questionnaire online!","submitData":{"custom-submit-text":"Send","custom-invalid-form-message":"Error: Your form is not valid, please fix the errors!","conditions":[],"custom-class":"btn"},"validation-inline":"1","form-expire":"no_expire","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":"draft","honeypot":"1","cform-color-settings":"true","cform-label-color":"#222222","label-helper-color":"#222222","label-validation-color":"#000000","input-bg":"#f3f3f3","input-border-hover":"#305a90","input-hover-bg":"#ffffff","input-active-bg":"#ffffff","input-border-active":"#305a90","select-background-static":"#f3f3f3","select-value-static":"#222222","select-border-hover":"#305a90","select-icon-hover":"#283648","select-background-hover":"#ffffff","select-border-active":"#305a90","select-icon-active":"#283648","select-background-active":"#ffffff","dropdown-border":"#305a90","dropdown-background":"#ffffff","dropdown-option-background-active":"#305a90","button-submit-background-static":"#305a90","form_name":"test","select-icon-static":"#283648","dropdown-option-color-static":"#000000","dropdown-option-background-hover":"#f3f3f3","use_ajax_load":"1","use_donotcachepage":"","radio-border-active":"#283648","radio-icon":"#305a90","use-custom-css":"","custom_css":"","store_submissions":"1","cform-asterisk-color":"#bb0000","akismet-protection":"0","sc_email_link":"1","sc_message":"<p>Your form has been saved as draft and a resume link has been generated so you can return to the form anytime within {retention_period} days from today. Copy and save the link or enter your email address below to have the link sent to your mail.</p><p>These fields weren't saved to your submission draft: Paypal, Stripe, Signature, Password, Captcha, and Upload. Kindly fill them out before submitting the form.</p>"},"client_id":"","integration_conditions":[],"behaviors":[{"slug":"behavior-1234-4567","label":"","autoclose-time":"5","autoclose":"","newtab":"sametab","thankyou-message":"<p>Thank you!</p>","email-thankyou-message":"","manual-thankyou-message":"","submission-behaviour":"behaviour-thankyou","redirect-url":""}],"notifications":[]},"status":"draft","version":"1.21.0"}
Advertisement
Add Comment
Please, Sign In to add comment