News:

SMF 2.1.3 has been released! Take it for a spin! Read more.

Main Menu

Custom profile field default values??

Started by rcane, December 03, 2022, 01:08:10 PM

Previous topic - Next topic

rcane

I have a custom field (text, single digit numerical). 

Can I set it to default to "0"—should someone forget to set it?

I ask because until it has a value I don't think it appears in the themes table under 'value'

Illori

there is no default by "default" if you need a default set you may need to look at a mod.

Sir Osis of Liver

"The best laid schemes o' mice an' men / Gang aft a-gley." - Robert Burns

rcane

Yep.  I swapped the text field for radio buttons.  The only options they needed were 0,1,2,3.  Just made 0 the default.  Thanks.

Advertisement: