PDA


View Full Version : HOW DO I: install a default value for a custom field?


ataraxia
10-23-2004, 04:20 PM
Is there some way to set a default value for a custom field?

For example, can I set things up so that, say, my homepage URL will appear in customfield[homepage] when someone submits a new link (yet will allow them to change it to something else if they want)??

Can this be done in a template or will it require a hack? How?

thanks

ataraxia
10-26-2004, 07:26 PM
Anyone have any ideas on this yet? (Thanks!)

Polo
02-14-2005, 12:34 PM
no clue :confused:

rbl
02-16-2005, 11:17 PM
Don't know if it solves anything but It might help.
On a similar problem, I edited the field in the db (using phpMyAdmin) to set a default value instead of empty (NULL).

(just saw this link) Or you can try a variation of this:
http://www.vbadvanced.com/forum/showthread.php?t=4005