• Resolved sgtan2264

    (@sgtan2264)


    how can we disable first name and last name required fields? We are using another plugin for member profile but WP User Frontend insist us to add last name and first name even when the registration form we have doesnt have first name and last name.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @sgtan2264

    How can we disable first name and last name required fields?

    → Firstly, please note that WPUF Free facilitates predefined default WordPress registration form with the shortcode [wpuf-registration]. Customize the registration form/field unavailable with the Free version.

    However, you can achieve such tweaking by using custom JS like below. You can use a plugin (https://www.ads-software.com/plugins/custom-css-js/) to push custom JS:

    jQuery(document).ready(function( $ ){
        // set firstname or lastname field unrequired
        $("#last_name_126").attr('data-required', 'no'); //input your field's ID
        $("label[for=last_name_126] .required").hide(); //input your for field's value
    });

    I hope this will helps.
    Thanks!

    Thread Starter sgtan2264

    (@sgtan2264)

    Hey thanks for the help. but the JS seem not working.

    Hi,

    You need to modify the respected ID and for-label to make it workable. You can also share your form/page URL to check it out.

    Thanks.

    Hey there!

    This thread has been inactive for a while, so I’m going to mark it resolved. Please feel free to open a new thread/topic if any other questions arise!

    Regards!??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[NSFW] how can we disable first name and last name required fields?’ is closed to new replies.