Registration form

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 3 reply threads
  • Author
    Posts
    • #74567
      r_guayaquil
      Participant

      Hi,

      Is it possible to create different registration forms for each membership?

      You gave this code for the city and state fields to be required. I also need the name and last name field to be required.Please help me with that!

      add_filter( 'wcfm_membership_registration_fields_address', function( $address_fields ) {
      	if( isset( $address_fields['city'] ) ) { 
      	  $address_fields['city']['custom_attributes'] = array( 'required' => 1 );
      	}
      	if( isset( $address_fields['state'] ) ) { 
      	  $address_fields['state']['custom_attributes'] = array( 'required' => 1 );
      	}
      	return $address_fields;
      }, 50 );
    • #74940
      WCFM Forum
      Member

      Hi,

      Is it possible to create different registration forms for each membership?

      – This is not possible right now.

      You gave this code for the city and state fields to be required. I also need the name and last name field to be required.Please help me with that!

      – Here is your code for the purpose –

      add_filter( 'wcfm_membership_registration_fields', function( $registration_fields ) {
      	if( isset( $registration_fields['first_name'] ) ) {
      		$registration_fields['first_name']['custom_attributes'] = array( 'required' => 1 );
      	}
      	if( isset( $registration_fields['last_name'] ) ) {
      		$registration_fields['last_name']['custom_attributes'] = array( 'required' => 1 );
      	}
      	return $registration_fields;
      }, 50 );

      Thank You

    • #75080
      r_guayaquil
      Participant

      Hi,

      Thanks a lot!

    • #75308
      WCFM Forum
      Member

      You are welcome 🙂

Viewing 3 reply threads
  • The topic ‘Registration form’ is closed to new replies.