Dependable Fields in Frontend Submit Form
-
Hi,
i have a question regarding dependable fields in the event frontend submit form.
I want to add more dependable fields regarding online events – if its an online event, i want to hide some custom fields i created.I found the following code in wp-event-manager-form-submit-event.php:
//this filter need to apply for remove required attributes when option online event selected and ticket price. if(isset($group_fields['event_online'] ) ) { if($group_fields['event_online']['value']=='yes') { $group_fields['event_venue_name']['required']=false; $group_fields['event_address']['required']=false; $group_fields['event_pincode']['required']=false; $group_fields['event_location']['required']=false; } }
I thought when i add my custom fields to the code, they would hide when online events are checked, but that does not happen.
Can you help me here? Where (eg which template file) can i add my custom fields so they hide when online events are checked? Can you provide a code snippet?
Thanks a lot,
Cami
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Dependable Fields in Frontend Submit Form’ is closed to new replies.