No announcement yet.

Restrict Textbox For Special Characters

  • Filter
  • Time
  • Show
Clear All
new posts

  • Restrict Textbox For Special Characters

    Hi, I am a new user of PhantomPDF Creator and have just build a form where I need to restrict the content of a textbox to ONLY contain the following characters:
    "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvw xyz0123456789/-?)., +{}'"
    I tried to open the Text Field Properties and add some Javascript under the option "Run custom validation script", but I am not sure how to retrieve the text and how to throw an error, etc.
    Anyone who can point me to the right direction?

    Also I would like to restrict the textbox to 100lines of max 65characters per line. I have now just made a textbox with a restricted width to 65 characters and the maximum characters limitation to 6500. However, more than the 57 lines that fit into the A4 page will create issues. But I am not sure how to restrict it further than this.

    Many thanks in advance!!!