JobGrok Board Version 1.0.0 now available
For a limited time JobGrok Board will be included in the JobGrok Premium subscription.
JobGrok Board includes front-end profiles for jobseekers and employers!
Log in
Subscribe Now!Subscription:
$99/6 months - $149/12 months
Had a positive JobGrok experience?
Leave us a review here.
 JobGrok
Welcome Guest   [Register]  [Login]
 Subject :Problem expanding form in 2.0 beta.. 2009-12-07 04:18:39 
wrduncan
Senior Boarder
Joined: 2009-06-12 12:33:12
Posts: 76
Location

I have a problem trying to expand the application form for some additional required fields that our HR department wants to add. I have extended the applications table to include a filed "county_wood_bg" for example. (There are more, but if I can get the one resolved, I should be able to get the others as well.)

I am using the long.php form, and added an additional line, based of of the can you work evenings or week-ends fields, like this:

<input type="checkbox" name="county_wood_bg" id="county_wood_bg" class="inputbox" value="1" <?php if (isset($this->application)) if ( '1' == $this->application->county_wood_bg ) echo "checked "; ?> /> &nbsp;<div class="input_text">Bowling Green</div>

When I complete the form, and don't fill in all the required fields, the weekends (and others) field remains checked (I had checked the box, so that is correct) but the custom field does not retain its state.

I have tried to go through all the files that might have this field, but can not find anywhere that might prevent this from loading. Can anyone provide some assistance as to where I might have forgotten? I have done a site-wide search for the weekend field, figuring that if that field is working, I just need to add my code there in a similar fashion, but am still not able to gett his field to retain its state.

Thanks for any assistance you can provide.

IP Logged
 Subject :Solved.. 2009-12-07 04:49:45 
wrduncan
Senior Boarder
Joined: 2009-06-12 12:33:12
Posts: 76
Location

I guess I should have poked around some more before asking.

Since the form is running through the model/applicaton.php as well, I had:

$this->_application->county_wood_bg = $this->get('county_wood_bg');

instead of:

$this->_application->county_wood_bg = $this->_get('county_wood_bg');

The _get was the issue. I guess I need to pay more attention to details!

IP Logged
Page # 


Powered by ccBoard


Search