Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Required fields on HTML form?
Message
General information
Forum:
Internet
Category:
HTML
Miscellaneous
Thread ID:
00231098
Message ID:
00232426
Views:
21
>>>on the oRox.MsgBoard() page at RoxWorld.com, when you hit the [Post Message] link it brings up a simple form with a couple of text boxes and a drop down/combo box control. How can tweak this puppy to make some of those fields require an entry of some sort?
>>>
>>>(braces herself for the potential "need script" answer)
>>
>>"NEED SCRIPT"
>>
>>Good thing you were braced!!! Actually, you will need script (either JavaScript, JScript or VBScript, or ASP script with the form page being resubmitted to itself, in case clients don't allow scripting).
>>
>>This is the only "foolproof" way I've seen to do this. There are validation options in FP98 when you modify a field's properties, but I've had limited (read VERY VERY) success with this option.
>>
>>Look at it this way, you'll get to learn some scripting! ;)
>
>Hi Hugo!
>I eventually found the field validation options... boy they are limited! But for now I managed to set up the post message form on the RoxWorld message board to make sure the subject & from fields are not left blank. That's good enough for now, but boy does it drive me nuts that you do stuff like that in FP thats obviously scripted yet you can not see what it's doing. < grumble > Real hard to have confidence in your work with a tool like that...

I know, that's why I prefer doing the validations myself, but with server side scripts (ASP) since not all browsers (program and person) has Scripting enabled. Also, it's easier to track down (in myu personal opinion anyways, and that's what matters, isn't it? :)

All I do is post the form back to itself, make sure that it WAS posted (not browsed to) and then run my checks. If all works out, then I do whatever I feel like doing with it, pass it on, store it, display it, etc.

Hugo
"My get up and go must've got up and went"
-Steve Tyler, Aerosmith
Previous
Reply
Map
View

Click here to load this message in the networking platform