View Full Version : Form colors
madman
09-06-2004, 01:53 PM
Greetings,
We are running 4.5. When a form is created that has required fields and they are not filled in a Form Input Error form will display asking for this information. This form has a red background by default. Is there a way to change the backgroup color?
Dean
Cameron Allen
09-06-2004, 06:25 PM
Go into /sohoadmin/client_files and fine pgm-form_submit.php, open it, and on line 249 change:
echo "<BODY BGCOLOR=RED TEXT=WHITE>\n\n";
to
echo "<BODY BGCOLOR=NEWCOLOR TEXT=WHITE>\n\n";
NEWCOLOR represents the color of your choice.
ehopkins
04-21-2005, 11:48 AM
How can I change the field names? It seems to be showing the field names from the column title from DB, but not all of the DB names are comfortable to read (ex. Postal Code --> PCDE).
pharmboy
09-06-2005, 01:59 PM
How can I change the field names? It seems to be showing the field names from the column title from DB, but not all of the DB names are comfortable to read (ex. Postal Code --> PCDE).
I am unable to even see ANY fields to fix--it just shows:
You left a required field or fields blank. Please enter the following data before continuing:
Submit
With no fields to fix or field names. Wonder if the database is missing the fields...
Cameron Allen
09-06-2005, 02:02 PM
How can I change the field names? It seems to be showing the field names from the column title from DB, but not all of the DB names are comfortable to read (ex. Postal Code --> PCDE).
You need to remake the form to change the field name. You could also download the form through ftp to edit it in notepad, or your html editing program and upload it, then re-drop it on the page. Once you have done this you will need to delete the data table that the form is using, so that it creates a new datatable using the correct field names.
Cameron Allen
09-06-2005, 02:04 PM
I am unable to even see ANY fields to fix--it just shows:
You left a required field or fields blank. Please enter the following data before continuing:
Submit
With no fields to fix or field names. Wonder if the database is missing the fields...
If you are having a similar problem you should recreate the form. Make sure that you only use alpha-numeric characters when naming the fields (exampe: 123abc, no special characters like, $ - !).
pharmboy
09-06-2005, 02:23 PM
Had one hyphenated named field (E-Mail). I'll try changing it, but I JUST decided to recreate the form, and immediately tried submitting with no info in required fields and it worked. ALl uncompleted fields were there for me to fix.
THEN I went in and custom edited the form to make it format properly (checkbox fields were lining up consecutively on lines one after the other, all I did is add a <BR> tag after each checkbox field instead of the that was there to make each checkbox and associated label appear by itself on a new line) and that seems to break it.
Just verified. Changed e-mail to email and that doesn't fix it. I'm going to change the <BR> tags back to and see if that fixes it...
Cameron Allen
09-06-2005, 02:49 PM
The problem can be the format that you save it in when downloading and editing, then uploading. I have found that many times windows will save the .form in improper format when downloading through Pro Edition's file manager. Try downloading, and uploading the form using an ftp client.
pharmboy
09-06-2005, 04:18 PM
Yes I definitely have some problems with my webhost here. FTP access will not even allow me to write to the media directory where the .form file I am trying to edit is located. It won't allow me to rename the file, overwrite the file, or delete the file. For that matter, I cannot do ANYTHING in that directory to ANY file. Looks like I have a permission problem. /sigh
Cameron Allen
09-06-2005, 06:10 PM
That may be the way your host wanted your permissions to bet setup. As long as the tool can upload/ overwright files. Try saving the form as an html file and then renaming it once it is uploaded.
pharmboy
09-07-2005, 09:54 AM
Naa renaming wouldn't work either. In any case, I just got an email telling me permissions have been fixed, so hopefully I can simply edit the file via cpanel's file manager and be done with it =)
pharmboy
09-07-2005, 10:05 AM
Permissions (actually file and directory ownership) problems fixed. Edited file via file manager, saved, and all is well. That's the way I prefer to do things, as it avoids plopping Linux/Unix text files on a windows drive and editing them there, which (as you said) tends to screw up the formatting of the file.
Thanks for the help Cameron!
Cameron Allen
09-07-2005, 12:13 PM
Permissions / Owner Permissions account for 90% of all problems people experience with our product. It is extremley import to set these correctly. It is very important to set your permissions correctly. For manual installations you should try to tighten them down as tight as you can without preventing the tool from functioning. I am glad you got everything working.
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.