Results 1 to 3 of 3

Thread: How can i set a custom default value for job type in submit-job-form.php

  1. #1
    Thread Starter
    modyssee's Avatar
    Join Date
    Apr 2013
    Location
    France
    Posts
    68
    Thanks
    0
    Thanked 6 Times in 5 Posts

    How can i set a custom default value for job type in submit-job-form.php

    Hello

    In submit-job-form.php all the fields have a default choice enable (so user can see for example "select an option" or "choose" but job type don't have any default value so a job type is automatically selected by default (which is not logicial). As the piece of code for job type in submit-job-form.php is not build the same way as the other taxonomies, how could i add my own default value?

    Default code is:

    PHP Code:
                <p><label for="job_type"><?php _e('Job type'APP_TD); ?> <span title="required" style="color:red; font-weight:bold;">*</span></label>
                    <select name="job_term_type" id="job_type" class="required">
                    <?php
                    $job_types 
    get_terms'job_type', array( 'hide_empty' => false ) );
                    if (
    $job_types && sizeof($job_types) > 0) {
                        foreach (
    $job_types as $type) {
                            
    ?>
                            <option <?php if ( $job->type==$type->term_id ) echo 'selected="selected"'?> value="<?php echo $type->term_id?>"><?php echo $type->name?></option>
                            <?php
                        
    }
                    }
                    
    ?>
                </select></p>
    Thanks

  2. #2
    Expired Customer andymorrell's Avatar
    Join Date
    Jul 2013
    Location
    United Kingdom
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,958
    Thanks
    169
    Thanked 3,405 Times in 3,276 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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Jomark Job Type default in Job Submit Form
    By gregpill in forum Help Using JobRoller
    Replies: 12
    Last Post: November 6th, 2014, 12:54 PM
  2. Adding custom fields to submit form
    By teckhead in forum JobRoller General Discussion
    Replies: 4
    Last Post: August 10th, 2012, 05:45 PM
  3. Default Form and Custom Fields not Installing
    By eyesea in forum Help Using ClassiPress
    Replies: 21
    Last Post: February 14th, 2012, 03:02 AM
  4. Replies: 1
    Last Post: January 4th, 2012, 06:36 AM