cancel
Showing results for 
Search instead for 
Did you mean: 

workflow: form: input text : how to remove accents ?

milonette_
Star Collaborator
Star Collaborator

Hello,

  • I use workflow nuxeo on nuxeo 5.6.
  • I have a field "firstname" that user fill on a node form.

I want to disable/transform "accents" when user fill this field.

I through I could use js script or a run script with the good code if this solution is not yet proposed by nuxeo workflow-node-form-inputText, but, I don't know where I have to call it in nuxeo studio interface.

My run script:

WorkflowVariables["Name"]=WorkflowVariables["Name"].toUpperCase();
WorkflowVariables["firstName"]=org.apache.commons.lang.StringUtils.upperCase(WorkflowVariables["firstName"]) ;

But I still got accent, it's just in uppercase... Do you have a "run script" solution to remove accents on an input field with nuxeo studio ?

thank you

1 ACCEPTED ANSWER

milonette_
Star Collaborator
Star Collaborator

Hello me,

I got your run script:

WorkflowVariables["name"]=org.nuxeo.common.utils.StringUtils.toAscii(WorkflowVariables["name"]);

View answer in original post

1 REPLY 1

milonette_
Star Collaborator
Star Collaborator

Hello me,

I got your run script:

WorkflowVariables["name"]=org.nuxeo.common.utils.StringUtils.toAscii(WorkflowVariables["name"]);
Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.