This topic is locked
[SOLVED]

 Default Value = null

9/17/2008 4:06:24 PM
PHPRunner General questions
J
jskewes author

Hi -

I have a list box that will be used to pick a subject line message for an email that is sent "on update".

This will be a reusable field.

So...you may open the record and add to it, or modify it or change a date.

Each time you would pick a corresponding message.

I will be making this a required field and want to force a pick every time.
Question; how can I make the box default to "please select"?

This so that a user does not inadvertently reuse that last message.
Thanks for the help.
/john

S
swanside 9/18/2008

Hi -

I have a list box that will be used to pick a subject line message for an email that is sent "on update".

This will be a reusable field.

So...you may open the record and add to it, or modify it or change a date.

Each time you would pick a corresponding message.

I will be making this a required field and want to force a pick every time.
Question; how can I make the box default to "please select"?

This so that a user does not inadvertently reuse that last message.
Thanks for the help.
/john


In Visual Editor, double click on the list box field in the add or edit page and select Look Up Wizard. Select List Of Values and add the text you want and select the required filed box

J
jskewes author 9/18/2008

Hi -

Thanks, I understand how to populate list boxes.

What I am trying to do is; whenever the record is opened for editing --> the list box will default to null or "please select" even if there has previously been a value in that field. This way the user is forced to make a selection.
Thanks

/john

J
jskewes author 9/18/2008

Hi -

I guess what I am trying to do is reset the field to NULL when the record is opened for editing.
Tablename = getready

Fieldname = subject
Thanks, I appreciate any help.
/john

J
Jane 9/19/2008

John,
use Edit page: Before displayevent on theEventstab for this purpose.

Here is a sample:

$smarty->assign("value_Fieldname","");