Bhushan
Forum Replies Created
-
I got it fixed! Thank ??
Hi @angelo_nwl ,
Thanks for reply!
you are logged-in as admin or the event owner ?
> as userbookings are still available on the admin dashboard ?
> YesConsole screenshot: https://ibb.co/hX22dz5
Will you please guide me which file i need to change to compare user_login with custom_field and if user_login input match with custom_field input show error.
Thanks & Regards,
BBI made it and it worked.
To achive my case I have used custom field validation hook and also I have compared unique mata key value
Refer > https://docs.ultimatemember.com/article/94-apply-custom-validation-to-a-field
Below is the code:
add_action('um_custom_field_validation_winner_id_exist','um_custom_field_validation_winner_id_exist', 10, 3); function um_custom_field_validation_winner_id_exist( $key, $array, $args ) { global $ultimatemember; $args_unique_meta = array( 'meta_key' => $key, 'meta_value' => $args['guest_winner_id'], 'compare' => '=' ); $meta_key_exists = get_users( $args_unique_meta ); if ( (isset( $args['guest_winner_id'] ) && username_exists( $args['guest_winner_id'] ) == false ) || $meta_key_exists ) { $ultimatemember->classes['form']->add_error($key, 'This Winner ID does not exist or already used.'); } }
Thanks & Regards!
BBHi UM support,
Thanks for reply!
add_action('um_submit_form_errors_hook_','um_custom_validate_username', 999, 1); function um_custom_validate_username( $args ) { global $ultimatemember; if ( isset( $args['guest_winner_id'] ) && strstr( $args['guest_winner_id'], $args['winner_id'] ) ) { $ultimatemember->form->add_error( 'guest_winner_id', 'This Winner ID does not exist.' ); } }
Above is the code i am trying to use but its not working.
On User profile update I want to compare value input field (Eg. Guest WinnerID) from profile edit form with pre entered field of registration form WinnerID from database.
If the Guest WinnerID value FOUND in WinnerID value then submit profile from.
Will you please help me here how should i update the custom code PLEASE!!
Thanks for reply! Do you have any work around using custom code, it would be great if you can refer any samples. Thanks!
Ok do you have any example to refer for Custom Validation. In my case, I want “Unique Meta Key validation” and compare value with other field as well. Any suggestion on this case.
Yes, please suggest way for admin to be able to register new users in the front-end or backend with same UM fields.
Hi @duisterdenhaag,
Please help me in above case.
Forum: Plugins
In reply to: [Custom Post Type Widgets] Archives Widget not work with WPMLHello @thingsym Did you get any chance to look into it?
Hello @presstigers,
Thank you for your response.
It’s working fine now, I just have to configure SMTP for it.
Thanks for the great plugin!
Cheers Again..
Regards,
Bhushan B.Forum: Plugins
In reply to: [Simple Job Board] How to add number field type in Application Form Fields?Thanks for the reply!
I did it! after few customization in core plugin files.
Thanks Again, Cheers!!
Thanks Again. I’m going to mark it as resolved.
Dear @presstigers,
It’s working now!!! This Plugin Deserve 5 Star *****
Thank you so much..
Great Job Guys. Keep It up!
Regards,
Bhushan B.