-
Hi,
I’ve been trying to create an ordering form but can’t get the conditional logic to work.
What I need is when the user click on a checkbox, a number box will appear for the user to key in the quantity. But can’t seem to work. Any advise? Below is the code I used.
[vc_row][vc_column width=”1/2″][dhvc_form_text icon=”None” required=”1″ readonly=”no” control_label=”Name” control_name=”Name” placeholder=”Your Name” validator=”dhvc-form-validate-alpha”][gap height=”20″][dhvc_form_email icon=”None” required=”1″ readonly=”no” control_label=”Email” control_name=”Email” placeholder=”Your Email”][gap height=”20″][dhvc_form_text icon=”None” readonly=”no” control_label=”How did you hear about Leela’s Fine Chocolates?” control_name=”Feedback”][gap height=”20″][/vc_column][vc_column width=”1/2″][/vc_column][/vc_row][vc_row][vc_column width=”1/4″][dhvc_form_label control_name=”My Orders”]My Orders:[/dhvc_form_label][gap height=”20″][/vc_column][vc_column width=”1/4″][/vc_column][vc_column width=”1/4″][/vc_column][vc_column width=”1/4″][/vc_column][/vc_row][vc_row][vc_column width=”1/4″][vc_single_image image=”9614″ border_color=”grey” img_link_target=”_self”][dhvc_form_text icon=”None” readonly=”no” control_label=”Quantity” control_name=”fourpiecebox” placeholder=”Quantity” validator=”dhvc-form-validate-number” default_value=”0″][dhvc_form_checkbox control_name=”conditional_1″ options=”W3siaXNfZGVmYXVsdCI6MCwibGFiZWwiOiJPcHRpb24wIiwidmFsdWUiOiJ2YWx1ZTAifV0=” conditional=”W3sidHlwZSI6Im5vdF9lbXB0eSIsInZhbHVlIjoidmFsdWUwIiwiYWN0aW9uIjoic2hvdyIsImVsZW1lbnQiOiJmb3VycGllY2VnaWZ0Ym94In1d”][/vc_column][vc_column width=”1/4″][/vc_column][vc_column width=”1/4″][/vc_column][vc_column width=”1/4″][/vc_column][/vc_row][vc_row][vc_column width=”1/1″][dhvc_form_submit_button label=”Submit”][/vc_column][/vc_row]
Creating a form with conditional logic
This topic is: resolved