3 Replies Latest reply on Jul 9, 2017 8:28 AM by sargums46564804

    Is there a way to force space in field?

    sargums46564804 Level 1



      So I have a field called "striInitDocNum" defaulted to 1 as shown below:


      global.DocNumAction =





      The code then inserts a space before this default value:


      var dlgInit =


      "DNum": " " + this.strInitDocNum



      However, the user may remove this space in the form if they want to set to a different value from 1 to 2, for example:



      How can I make it so if the user decides to enter a different value than the default, the space in the field is maintained such they cannot delete it? This matters b/c the preview field (not shown) ends up also having a removed space and then it shows as "Exhibit2" instead of "Exhibit 2"