2 Replies Latest reply on Jun 11, 2013 5:58 AM by kmc27

    Possible to Read a Portion of a Text Field Rather Than Entire Contents?

    kmc27 Level 1

      I use a text field in my form to create a unique subject line for an email - excerpts of the code are shown below

       

      Rather than gettintg the entire contents of whatever the user has typed into the text field called "txt_message", I'd like to use the first 1 to 15 characters of their response. Is this possible?

       

      Thanks in advance for any advice on this

       

       

       

      var f8 = this.getField("txt_message ");

      :

       

              var m = this.getField("txt_message");

              var mysubject = m.value + " - Digital Form Submission";

              this.mailDoc(true, "digitalrequestforms@company.com", "", "", mysubject);