www.uburst.com www.uburst.com

"Required Field"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

General Questions
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Required Field"
Posted by Amy on Jun-11-02 at 06:58 AM (EST)
I need to make the phone number field required. Could you tell me which part of the code I need to modify?

Thanks for your help!

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: Required Field, Bill Weiner, Jun-12-02, (1)
Modification Didn't work, Amy, Jun-20-02, (2)
RE: Modification Didn't work, Bill Weiner, Jun-21-02, (3)
Oops, Amy, Jun-24-02, (4)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: Required Field"
Posted by Bill Weiner on Jun-12-02 at 04:02 AM (EST)
Assuming that you have the "phone" field configured as the reserve field "2" on the reservation form (the default), here are some instructions on how to make the phone field required:

STEP 1: Make a backup of your ureserve.pl script... just in case.

STEP 2: Open your ureserve.pl script with any text editor such as WordPad.

STEP 3: Do a search on the following line:

if ($res_start_time >= $res_end_time)

(There will be exactly TWO occurances of that line in the script.)

(Hopefully the greater-than sign appeared correctly in the above line. This forum sometimes has trouble displaying greater-than and less-than signs.)

STEP 4: Just BEFORE BOTH of the occurances of that line, add the following 4 lines:

if (($reserve_field2 =~ /\S/) && (!($res_field2 =~ /\S/)))
{
&missing_input("Missing Input","Please enter $reserve_field2.");
}

STEP 5: After adding those 4 lines to BOTH places in the script... save the script... as TEXT if your editor asks... and try it out!

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
2 . "Modification Didn't work"
Posted by Amy on Jun-20-02 at 01:54 PM (EST)
I tried to insert the 4 lines of code you suggested, but it didn't work. The phone number is still not a required field. Any suggestions?

Thanks for your help.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
3 . "RE: Modification Didn't work"
Posted by Bill Weiner on Jun-21-02 at 04:45 AM (EST)
I just tried the modifications out myself on a test script here and they worked fine.

Did you remember to put the 4 lines of code in BOTH places in the script?

Double-check that, if you are still having a problem, then send us a support request at http://www.uburst.com/supportform.html ... and I'll make the change for you.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents
 
4 . "Oops"
Posted by Amy on Jun-24-02 at 09:42 AM (EST)
I'm sorry. I just tried to modify the script again, and this time it worked. I must have been sleeping when I tried it last week. Thanks a lot for your help!
Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.