I have a text box that asks for the time my workers started a job. I have the default value as 24HR so they know what format to enter the time in as.
I want the form to verify that the data entered is anything but the default value '24HR' how do I set that?
if (validateField('field_19','fieldBox_19','text',0) == false)
retVal=false;
also, since your here, I have one other question (for now) lol. How can I include a date field visible or hidden, which will default to the current date, and also possibly a time field. My emails I recieve are date and time stamped so as long as I keep them I'm ok. BUt I would like two fields added to the form and saved in the database, one for the date and one for the time at which the form was filled and submitted.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Second adding the date to your database is more involved if you have already started using it and don't want to create a new form with this new db field. You would have to modify the db to include a new field and then modify your form and processor.php file to write the value to the db. The easiest thing to do is create a new form and let the new form modify the db.
Checking syntax is also a bit more involved since the new checking features are written in Java. There is a date checker for the date fields you select for your form. Anything beyond that is custom. I can help you with that if you really need it but you have to be willing to work with me on my own schedule.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a text box that asks for the time my workers started a job. I have the default value as 24HR so they know what format to enter the time in as.
I want the form to verify that the data entered is anything but the default value '24HR' how do I set that?
if (validateField('field_19','fieldBox_19','text',0) == false)
retVal=false;
also, since your here, I have one other question (for now) lol. How can I include a date field visible or hidden, which will default to the current date, and also possibly a time field. My emails I recieve are date and time stamped so as long as I keep them I'm ok. BUt I would like two fields added to the form and saved in the database, one for the date and one for the time at which the form was filled and submitted.
First check this post:
https://sourceforge.net/forum/message.php?msg_id=4673800
Second adding the date to your database is more involved if you have already started using it and don't want to create a new form with this new db field. You would have to modify the db to include a new field and then modify your form and processor.php file to write the value to the db. The easiest thing to do is create a new form and let the new form modify the db.
Checking syntax is also a bit more involved since the new checking features are written in Java. There is a date checker for the date fields you select for your form. Anything beyond that is custom. I can help you with that if you really need it but you have to be willing to work with me on my own schedule.