Results 1 to 5 of 5

Thread: Field "Location" in Edit Profile as required

  1. #1
    Thread Starter
    Expired Customer sricke's Avatar
    Join Date
    Oct 2016
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Field "Location" in Edit Profile as required

    Hallo Jomark,

    I'd like to mark the field "location" in "Edit Profile" as required.

    The source code in the relevant includes/views-users.php:


    foreach ( hrb_get_geocomplete_attributes() as $location_att ) {
    $meta_key = "hrb_location_{$location_att}";
    echo html( 'input', array( 'type' => 'hidden', 'name' => esc_attr( $meta_key
    ), 'data-geo' => esc_attr( $location_att ), 'value' => esc_attr( get_user_meta( $user->ID, $meta_key, true


    ) ) ) );
    }


    How to change this code? Adding

    'class' => 'required'


    didn't help.

    Thank you.

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    41,006
    Thanks
    170
    Thanked 3,409 Times in 3,280 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. #3
    Thread Starter
    Expired Customer sricke's Avatar
    Join Date
    Oct 2016
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    41,006
    Thanks
    170
    Thanked 3,409 Times in 3,280 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  5. #5
    Thread Starter
    Expired Customer sricke's Avatar
    Join Date
    Oct 2016
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. New field in the form "Edit Profile"
    By sricke in forum Help Using HireBee
    Replies: 1
    Last Post: May 1st, 2017, 12:15 PM
  2. Jomark How to make "Location" in Jobroller a required field?
    By whitefox in forum JobRoller General Discussion
    Replies: 8
    Last Post: August 27th, 2014, 01:10 PM
  3. Samcy Edit Profile - Password field labels have incorrect "for" value
    By almightyeric in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: January 2nd, 2014, 06:34 AM
  4. How to make "Location" in Jobroller a required field?
    By whitefox in forum Help Using JobRoller
    Replies: 1
    Last Post: November 28th, 2013, 11:26 AM