[SOLVED] Â changing lookup box option value for 'please select' default |
3/6/2007 6:27:41 AM |
ASPRunnerPro General questions | |
B
brasil author
this is my first post and i'm on day 4 of the trial version of asprunner 4.1 build 225. bear with me as i'm not a dedicated ASP/DB programmer, but i'm not a complete beginner either. |
|
J
|
Jane 3/6/2007 |
Hi, function BeforeAdd(&$values) { if ($values["FieldName"]=="") $values["FieldName"]=6; //6 - is the required value return true; } |
B
|
brasil author 3/6/2007 |
thanks so much for your quick reply! so far the "default value" value in the "edit as" box (which i somehow overlooked) solves most of my problem. |
B
|
brasil author 3/6/2007 |
btw, it seems it would be very helpful to be able to edit all possible options for "Please select" right from the asprunner interface, including removing it as an option entirely. this would be a great improvement to consider in your next version. |
J
|
Jane 3/7/2007 |
Hi, if strSize<2 then response.Write "<option value="""">" & "Please select" & "</option>" and replace it with this one: if strSize<2 then 'response.Write "<option value="""">" & "Please select" & "</option>" |
J
|
Joseph Zuanger 3/11/2007 |
Hi, to remove Please select option open include/commonfunctions.asp file, find following lines: and replace it with this one:
|