Hi
In Laserfiche forms I am capturing the Login user name token which is "FirstName Lastname". In need the name to show "LastName, FirstName". I tried the regex on advance section of the forms' field but it did not work. Regex is not able to capture part of the text. The same regex works in workflow but did not work on forms. I even used it to create a document name in repository on submission but still couldn't capture regex pattern value. For example:
I had the following regex: \w+ (\w+)(,\s)(\w+) \w+
The value in the field was: fname lname, fname lname ( I used the token twice here and also typed the name in field's default value without token)
I was expecting the name to show as lname, fname
but it still shows fname lname, fname lname
I was expecting regex to behave the same way LF form as workflow. Is there a way to retrieve and format field values in Forms?