Script for Patterns to be applied differently if US or CDN
hello,
in form need have script field allows validations/patterns postal codes cdn/zip codes us.
this script needs check value of country field , if should allow entry of text{99999} zip code , if enters different should come message saying entry can ##### or that. if canada should check pattern being entered text{a9a 9a9} , of course message of sort.
i know easy within form, becuase need check country , apply different rules not quite sure how go it. if have ideas please let me know ... actual script examples appreciated , place great.
i using formcalc, java scripts fine to. thx!
you can create both fields, 1 , 1 canada show/hide appropriate 1 based on country select. way don't have bunch of scripting.
in exit , docready event of country dropdown can put:
if (this.rawvalue=="us"){//or whatever value assigned united states usfield.presence="visible"; canadafield.presence="hidden"; } else{//default state usfield.presence="hidden"; canadafield.presence="visible"; }
kyle
More discussions in LiveCycle Designer
adobe
Comments
Post a Comment