I have written the following code on the Exit function of the dropdown to move the subform: if(this.rawValue=="Move"){ form1.Page1.Subform.x="2.0in"; //X coordinate of the subform form1.Page1.Subform.y="4.0in"; //Y coordinate of the subform}
2 ways of doing this:You make the rest of the fields wrapped in a subform and then set visibility of the subform so that only when field is non-empty the subform is visible, by setting property : Subform.presence="visible".You can set the access levels of the fields initially to protected and later ...
Example:if(Textfield1.rawValue==15){Textfield2.rawValue="Moderate"; //Setting value of Textfield2 to Moderate since Textfield1 is 15this.fillColor="255,140,0"; //fillColor is used to set the field color}
I tried removing all the pattern validations on the field and added this below code in the validate event of the text field and it works..var strCode;var f = /^([A-Z]{2}[1-9]{5}[A-Z])$/;if(this.rawValue != null && String(this.rawValue) != "") { strCode = String(this.rawValue); ...
I tried the same code on a single field on exit event, with just one modification: Maskedfld2 replaced with Maskedfld1It does mask the value.Can you please be more specific as to what is the expected behaviour.Thanks
To calculate the difference make use of: var diff= (Actual.rawValue - Estimate.rawValue);if(diff < 0){this.rawValue=0;}else{this.rawValue=diff;}To calculate the percentage difference you could make use of:var diffPer= (Actual.rawValue/ Estimate.rawValue);if(diffPer < 1){this.rawValue=0;}else{this.ra...
The x and y coordinates can be accessed as:TextField.x and TextField.ySo to be able to move the textfield you should use the below script in the Exit event of the dropdown:if(this.rawValue=="Move"){ TextField.x="2.0in"; TextField.y="4.0in";}