Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

add.html custom fields question

Quote Reply
add.html custom fields question
Hi there...

I have created several custom fields in a new site I'm building. Using these new custom fields I have modified add.html to reflect these changes.

The problem I'm having is that if I'm adding a new website (using add.cgi) and make a mistake (such as not selecting a category) then on the refreshed screen all of the information I previously entered is now missing. "original" information such as URL, contact email etc are all preserved.

How do I ensure that all fields are preserved when an error is generated?

thanks,

Paul
Quote Reply
Re: [pstewart726] add.html custom fields question In reply to
Hi,

You need to make sure you have stuff like:

Code:
value="<%if Field_Name%><%Field_Name%><%endif%>"

This should then pre-fill the field, based on what you entered before (this also is needed for the modify pages, otherwise it won't show up any info their either)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] add.html custom fields question In reply to
That's it! Thanks Andy - I completely missed that on the existing fields...

Paul
Quote Reply
Re: [Andy] add.html custom fields question In reply to
A shorter form is also just:

<%Field_Name || ''%>

Adrian