Is there a way to change the Column Name in error messages when submitting a form?
Example:
"Column Title cannot be left blank."
In 1 of MY include_form.html, the label for the column "Title" is "Band Name".
So, I want the message to say "Band Name cannot be left blank."
Otherwise the submitter will look at the form and say, hmmm there is no
column named "Title". I use multiple add/modify forms and would like the
name of the column wrt errors, to be taken from "name" or "id" of the input field.
Otherwise what is the purpose of having id and name? One of them seems useless.
"Title" could be interpreted as Mr, Mrs, President or Sir. <g>
<div class="value">
<input type="text" id="Title" name="Title" value="<%if Title%><%escape_html Title%><%endif%>" class="text" />
</div>
I would also like to remove the word "Column" because fields do not appear to
be columns to the submitter. So simply "Band Name cannot be left blank." will suffice.
Too bad I think I know the answer :-(
Thanks,
Chris
RGB World, Inc. - Software & Web Development.
rgbworld.com
Example:
"Column Title cannot be left blank."
In 1 of MY include_form.html, the label for the column "Title" is "Band Name".
So, I want the message to say "Band Name cannot be left blank."
Otherwise the submitter will look at the form and say, hmmm there is no
column named "Title". I use multiple add/modify forms and would like the
name of the column wrt errors, to be taken from "name" or "id" of the input field.
Otherwise what is the purpose of having id and name? One of them seems useless.
"Title" could be interpreted as Mr, Mrs, President or Sir. <g>
Code:
<label for="Title" class="name">Band Name: <span>*</span></label> <div class="value">
<input type="text" id="Title" name="Title" value="<%if Title%><%escape_html Title%><%endif%>" class="text" />
</div>
I would also like to remove the word "Column" because fields do not appear to
be columns to the submitter. So simply "Band Name cannot be left blank." will suffice.
Too bad I think I know the answer :-(
Thanks,
Chris
RGB World, Inc. - Software & Web Development.
rgbworld.com