![]() EDDY: Nick the Greek, a pleasure.Īll Tom, what you been eating? Tom his and a expression. TOM: What are you about? I am skinny, pal. Home Testimonials About Scripts PDF Scripts Contact Us Login / Register My Cart: 0 item(s) / $0.00 Movie Scripts TV Movie Scripts. If(f.value=f.defaultValue & f.type != 'button' & f.type != 'signature')) įor (var i = 0 i < this.Lock, Stock and Two Smoking Barrels script at the Internet Movie Script Database. Var f = this.getField(this.getNthFieldName(i)) Method #1) You can insert a script after the form has been submitted to revert it to readonly=false This.getField(this.getNthFieldName(i)).readonly = true test to see if there are any missing fields Īpp.alert("missed required fields!", 1, 0) fill the variable with the names of the required fields not completed Var TestFields = new Array("DateField", "List Box1", "Dropdown2", "Text3", "Text4") array of the names of reauired fields Since this is an action that might be needed by many different forms, I would create a function that could easily be incorporated into a form by adding a single page PDF with the function as a document level script function and then delete the blank page leaving behind the document level script. So there are a number of issues that might not be addressed by the above script. I would look at testing a field's value to its default value. It is also possible to set a default value to most fields, look at the "Options" tab. The only way to get a null string, "", is to populate the form using JavaScript. "comboboxes" and "listboxes" usually have a non-selected value of " ", space. Two obvious fields are the "check box" and "radiobutton" fields which have a value of "Off" if not selected and may even have one member of the group "checked as default". Also not all fields will have a null string as the default value. "buttons" do not have a required property. The above script cannot test the "listbox" filed since it cannot have the "required property" set to true. I'm a Javascript newbie so please be gentle with me So I'm looking for a IF THAT THEN THIS scenario.ġ. The problem I'm having is, if certain required fields are not complete when the submit button is clicked, the notification pops up to say some required fields are not complete, but it still locks the form so they cannot go back and add in the other information. I also put in some script to lock the fields to make them read only on submit. I'm using a submit by email button to submit the form. I have a form that has required fields and some javascript for required fields - for example "if NO is selected then make comments box required" ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |