Automate

 View Only
  • 1.  Web form - Title Case logic

    Posted 20 days ago

    Hi Community,

    We are looking to move away from uppercasing all name, address, and contact data in our Customer Master forms (Create & Change) and looking at switching to Title Case instead.

    Has anyone successfully introduced a Title Case feature into a web-form? If so, what did you use to complete, Java? What kind of errors do you experience with it?

    Thank you!



    ------------------------------
    Jeremy Maxfield
    Lead BSA
    Chamberlain Group, LLC
    Oak Brook IL
    ------------------------------


  • 2.  RE: Web form - Title Case logic

    Employee
    Posted 19 days ago

    Hi Jeremy

    Thank you for raising this. Please see the answer below for your query. If you have any further queries, you can raise them as a support ticket on our support portal.

    Based on the form element capabilities documented in Automate Evolve, you could potentially explore:
    1. Form Validation Rules - The Form Validation element can validate data entered in forms, which may support custom transformation logic
    2. Custom Rules - You may be able to create custom rules for Title Case transformation
    3. HTML/JavaScript Elements - The HTML element in forms allows custom HTML, which could potentially include JavaScript for client-side text transformation


    ------------------------------
    Archana Chandar
    *Precisely Software Inc.
    ------------------------------



  • 3.  RE: Web form - Title Case logic

    Posted 19 days ago

    I was successful in placing a rule on a field to do this via JavaScript.  If you place this rule on the field, anytime it changes it will update to the correct Title Case format.

    //get value of field
    var field = $form.getValue(ruleFieldInfo.XPath);
    //transform field
    var transformField = field.toLowerCase().replace(/\b\w/g, c => c.toUpperCase());

    $form.setValue(ruleFieldInfo.XPath, transformField);



    ------------------------------
    Jamie Eberhart
    DS Technology Hub LLC
    ------------------------------



  • 4.  RE: Web form - Title Case logic

    Posted 14 days ago

    Thanks for the reply and the java code that worked for you, Jamie! Looks like Java is going to be the way for us too, based on limited other options. Cheers!



    ------------------------------
    Jeremy Maxfield
    Chamberlain Group, LLC
    ------------------------------



  • 5.  RE: Web form - Title Case logic

    Employee
    Posted 13 days ago

    Great Thank you for letting me know.



    ------------------------------
    Archana Chandar
    *Precisely Software Inc.
    ------------------------------