Results 1 to 3 of 3

Thread: Turn "Resume Category" field into required

  1. #1
    Thread Starter
    Amateur djneo134's Avatar
    Join Date
    Mar 2012
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Turn "Resume Category" field into required

    Hi,

    I've got another question which could interest many people.

    I would like to transform the "Resume Category" field in a required field.

    I've modified this code in the submit-resume-form.php (~line 30)

    Code:
    <p><label for="summary"><?php _e('Resume Summary', 'appthemes'); ?> <span title="required">*</span></label> <textarea rows="5" cols="30" name="summary" id="summary" placeholder="<?php _e('Briefly describe yourself.', 'appthemes'); ?>" class="short" style="height:100px;"><?php if (isset($posted['summary'])) echo $posted['summary']; ?></textarea></p>
    And this code in the submit-resume-process.php (line 54)

    Code:
    // Check required fields
    		$required = array(
    			'resume_name' => __('Resume name', 'appthemes'),
    			'summary' => __('Summary', 'appthemes'),
    			'resume_cat' => __('Resume Category', 'appthemes'),
    			'jr_geo_latitude' => __('Location', 'appthemes'),
    			'jr_geo_longitude' => __('Location', 'appthemes'));
    Now, When I try to create a resume, I've got a symbol like "*" near the right text but if I try to save the resume without choosing a category, I don't have any error message and the resume is saved.

    How can I force the users to choose a Category for their resume ?

    Thanks

  2. #2
    soaringpine's Avatar
    Join Date
    Jul 2010
    Location
    United States
    Posts
    46
    Thanks
    0
    Thanked 2 Times in 2 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    soaringpine's Avatar
    Join Date
    Jul 2010
    Location
    United States
    Posts
    46
    Thanks
    0
    Thanked 2 Times in 2 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. [TUTORIAL] Make "Job Salary" as a required field?
    By derci in forum JobRoller General Discussion
    Replies: 7
    Last Post: October 26th, 2013, 04:05 AM
  2. "This field is required" - the mystery deepens
    By cloudybright in forum Report ClassiPress Bugs
    Replies: 21
    Last Post: February 20th, 2011, 03:04 PM
  3. Allow HTML Editor " This field is required." error message
    By wolfspeed in forum Report ClassiPress Bugs
    Replies: 21
    Last Post: February 11th, 2011, 06:42 PM
  4. How to translate "This field is required" and...?
    By deividas in forum Help Using ClassiPress
    Replies: 2
    Last Post: April 16th, 2010, 07:49 AM