From 419f17762c42c4465818bbccc3ce9e071b54c301 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 9 Oct 2018 10:14:55 +0530 Subject: added state and terms and conditions field --- workshop_registration.inc | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/workshop_registration.inc b/workshop_registration.inc index ef0b8c7..ea062fd 100644 --- a/workshop_registration.inc +++ b/workshop_registration.inc @@ -111,6 +111,19 @@ function osdag_workshop_booking_form($form, &$form_state) '#maxlength' => 50, '#required' => TRUE ); + $form['organization_info']['all_state'] = array( + '#type' => 'select', + '#title' => t('State'), + '#options' => osdag_workshop_booking_list_of_states(), + '#validated' => TRUE, + '#states' => array( + 'visible' => array( + ':input[name="country"]' => array( + 'value' => 'India' + ) + ) + ) + ); $form['organization_info']['pincode'] = array( '#type' => 'textfield', '#title' => t('Pincode'), @@ -308,9 +321,27 @@ function osdag_workshop_booking_form($form, &$form_state) "Word of mouth" => "Word of mouths"), '#required' => TRUE ); + $form['term_and_conditions'] = array( + '#type' => 'checkboxes', + '#title' => t('Terms And Conditions'), + '#options' => array( + 'status' => t('I agree to the Terms and Conditions') + ), + '#required' => TRUE + ); $form['submit'] = array( '#type' => 'submit', '#value' => t('Submit') ); return $form; } + +function osdag_workshop_booking_form_validate($form, &form_state) +{ + return; +} + +function osdag_workshop_booking_form_submit($form, &form_state) +{ + return; +} -- cgit