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

Hello. For rental housing, there are software solu[…]

Experience heightened pleasure with Cenforce 100 M[…]

Get an instant solution to move emails to MBOX for[…]

Most Demanding OST to PST Converter

The most demanding OST to PST Converter is TrijaT[…]