Hi Steve,Many thanks for your reply.Since I am using a form guide I cannot use the FormCalc behind timeAtClick and currentTime. Do you know how to code Num2Time(Time(), "HHMMSS") in JavaScript?Garreth
Use a Numberic Field from the object library. On the object pallete/Value tab click the Validation Pattern button. You can specify the format of the number for display etc there. EG. To have a nine digit number with leading zeros you will need the following pattern: num{999999999}Setting the Val...
As Dallas Kuhn said:if (this.rawValue == '' || this.rawValue == null){ xfa.host.messageBox("The client ID field is required.");}The script should be added on the Exit event for the client ID field.Can you post the form and I'll have a look at it?
In JavaScrpt you can use the following:this.mandatory = "error"It should be noted that it is not possible to turn of mandatory fully when in a formguide (if you are planning on using one.) It leaves an asterisks character in the caption.
You might be able to use this since I've simplified it a bit from what we use. We have a field called 'policyType' wrapped in a subform called 'subOtherInsuranceDetail'. This subform is wrapped in a subform called 'subOtherInsuranceList'. We need to find the number of instances of 'policyType' th...
One option is to add a drop down list to your form with 1 to 4 as your List Items on the Object Field pallette.Another way is to have javascript/formcalc behind a text field to validate the value entered.