Viewing 6 replies - 1 through 6 (of 6 total)
  • Hiya,

    There’s not actually an option for that I’m afraid.

    If you’re comfortable with custom coding it might be do-able, though.

    Cheers

    Thread Starter bidum00

    (@bidum00)

    If I was comfortable with coding surely I wouldn’t be asking for help bro.
    I’m 100% sure it’s do-able. Hopefully someone responds with the answer.

    Thanks for your reply though

    Cheers

    What Phil means is that the only way to do it would be with custom coding – there’s no option for it in the interface.

    Thread Starter bidum00

    (@bidum00)

    Wow, ok so what’s the custom code to make my zip code field required during the submit an event process?

    Plugin Support angelo_nwl

    (@angelo_nwl)

    you can try to hook into em_location_validate filter – something like this in your theme functions.php

    function my_em_mod_location($result, $EM_Location){
    	if( empty($EM_Location->location_postcode) ){
    		$result = false;
    		$EM_Location->add_error( __("zipcode is required.", "dbem") );
    	}
    }
    add_filter('em_location_validate','my_em_mod_location',10,2);
    Thread Starter bidum00

    (@bidum00)

    angelo_nwl: your code works, your the flippin man, thank you

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Required Field’ is closed to new replies.