Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: If Profile Field is Not Empty, Set Profile Field Data?

@danbp

Participant

Hi,

no idea on how to conditionnaly combine 2 xprofile field.

Here how you can show a msg if a field was not filed, even if it is not exactly what you asked for.

if ( bp_is_active( 'xprofile' ) || bp_is_profile_component() || bp_is_user()  )
 	
	if ( !$data = bp_get_profile_field_data( 'field=Service' ) ) : // use field name
		echo '<br>Your profile is not complete. Please fill in field: Service<br>'; 				
	endif;
Skip to toolbar