How to get User full name or first name in confiform

Dhiraj Kr_ Gupta June 8, 2024

I have a confiform field definition with field User. So i got user name as Snow, John2 [ABC] Or aa0000. I want only to return John in Display or confiform table view.

 

1 answer

0 votes
Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 8, 2024
Dhiraj Kr_ Gupta June 13, 2024

I want something different 

For eg

Full name : Medved, Alex23[CONF]

Output : Alex 

I am trying this in the formula but getting error Unknown operator at position 46

IF(EMPTY(SPLIT(REGEXREPLACE([entry.Name.fullName], "\[?\d+\]?", ""), ",")[1]), 

   SPLIT(REGEXREPLACE([entry.Name.fullName], "\[?\d+\]?", ""), ",")[0].strip(), 

   SPLIT(REGEXREPLACE([entry.Name.fullName], "\[?\d+\]?", ""), ",")[1].strip()

)

Dhiraj Kr_ Gupta June 13, 2024

FirstName= [entry.Name.fullName.replaceAll('.*?\\,\\s(\\D+?)(\\d|\\s|\\[).*', '$1')].

FirstName=[entry.OwnerName.split(", ")[1].replaceAll('[\\d\\[\\]]', '').split(' ')[0]]

It is also not working after IFTTT macro

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events