Sorry, I know this is the wrong forum, but my subscription has expired (I’ve come from the WP forums).
I’m using Pro 1.6.3. plus 2.11.1
I’m trying to add tickets to an event. By default, it gives me first & last names and email. However, only first name and email are mandatory. How can I make the last name mandatory, or better yet, turn off those fields and add my own advanced fields instead?
Sue
Hi Sue,
Sorry to make you cross post 🙂
In 1.6.3 it isn’t possible. It is in 1.9.5 (and presumably 1.9.* I’ve not checked) with the following code
add_action( 'eventorganiser_get_event_booking_form', 'booking_form_require_last_name', 10, 2 );
function booking_form_require_last_name( $form, $event_id ){
$name = $form->get_element( "name" );
$name->set( 'lname_required', true );
}
and in 2.10.0 there’ll be a UI option for this.
Stephen Harris
Thanks Stephen. I’ll have to work around it.
cheers,
Sue