Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [timbo] I see hidden fields

Quote Reply
Re: [timbo] I see hidden fields In reply to
In Reply To:
This is crazy. If a field is defined as hidden, it should be hidden not only in the add_form page but also in the add_success and modify_success pages. What's the point of having a hidden field if it is then displayed to the user. GT - can we have a fix for this one please?


The templates supplied with DBManSQL are only examples and it's up to you to modify them. You can decide what fields to display but if you use the standard template it will always generate ALL fields to be displayed. A hidden field is alway hidden on the form but it depends on your code as to if it's shown on any result pages. You need to replace the red code in the following default add_success.html with the fields you want to display -

<%include header.html%>
<%ifnot m%>
<p>
<center>
<table border="1" cellpadding="0" cellspacing="0">
<tr>
<td height="125">
<table bgcolor="#ffffff" border="0" cellpadding="3" cellspacing="3" width="500" valign="top">
<%Dbsql::HTML::generate_add_success%>
</table>
</td>
</tr>
</table>
<p>
</center>
<%endif%>
<p>
<%include footer.html%>


The code you add should look something like -

Title1: <%field_name%>

Title2: <%field_name%>

If you don't want the hidden field displayed, don't include it here.

Hope this helps.

Simon.
Subject Author Views Date
Thread I see hidden fields jaspercram 11686 Oct 14, 2002, 4:07 AM
Thread Re: [jaspercram] I see hidden fields
timbo 11317 Aug 28, 2003, 8:36 AM
Post Re: [timbo] I see hidden fields
ecamty 11275 Sep 3, 2003, 11:10 AM
Thread Re: [jaspercram] I see hidden fields
YoYoYoYo 11317 Sep 3, 2003, 11:50 PM
Thread Re: [YoYoYoYo] I see hidden fields
timbo 11267 Sep 14, 2003, 2:30 AM
Post Re: [timbo] I see hidden fields
jai 11225 Sep 16, 2003, 4:10 PM
Thread Re: [YoYoYoYo] I see hidden fields
kevinws 11263 Sep 15, 2003, 1:03 PM
Thread Re: [kevinws] I see hidden fields
jai 11232 Sep 16, 2003, 3:57 PM
Post Re: [jai] I see hidden fields
kevinws 11211 Sep 17, 2003, 6:50 AM
Thread Re: [jai] I see hidden fields
kevinws 11206 Sep 17, 2003, 2:36 PM
Thread Re: [kevinws] I see hidden fields
kevinws 11220 Sep 17, 2003, 2:47 PM
Thread Re: [kevinws] I see hidden fields
jai 11239 Sep 17, 2003, 4:38 PM
Thread Re: [jai] I see hidden fields
kevinws 11204 Sep 18, 2003, 8:10 AM
Thread Re: [kevinws] I see hidden fields
jai 11216 Sep 18, 2003, 3:56 PM
Thread Re: [jai] I see hidden fields
kevinws 11181 Sep 19, 2003, 6:39 AM
Post Re: [kevinws] I see hidden fields
TIF 10701 Apr 3, 2006, 8:05 PM
Post Re: [jaspercram] I see hidden fields
kevinws 11241 Sep 15, 2003, 1:07 PM