Questions and discussion about using ProcessMaker 2: user interface, running cases and functionality
Forum rules: Please search to see if a question has already been asked before posting. Please don't ask the same question in multiple forums.
By eventoteam
#793132
Hi,

I'm using Process maker v1.2 and i'm having issue in replacing a character with a Text, while submitting the form using JavaScript.
When a User paste its Phone number including the icon (📱) in the textarea. The form give derivation error on submission and later we can't access that case.

Field Code:
<textarea id="form[txtNoteToBeAdded]" name="form[txtNoteToBeAdded]" cols="100" rows="10" style="" class="module_app_input___gray" wrap="soft"></textarea>
#793141
Try adding this to your XML code:
Code: Select all
<mycode type="javascript" meta=""><![CDATA[getField("txtNoteToBeAdded").onchange = function() {
  var val = this.value.replace(/&#x?\d+;/g, "");
  val = val.replace("0x1f4f1", "");
  val = val.replace("\uf09f\u93b1", "");
  getField("txtNoteToBeAdded").value = val;
}]]></mycode>
See: http://www.fileformat.info/info/unicode ... /index.htm

Thanks for the link, amosbatto! I was searching fo[…]

Hello Please can you help me with the place where […]

Hi there, I have 3.5.7, 3.8.1 and 3.8.2 versi[…]

AI bot development involves creating intelligent b[…]