Unable to assign logged in User name on field

Abhik Banerjee April 23, 2021

Hi All,

I have requirement to pre populate logged in Use name and email address into a form field. I tried assign default value as [entry._user.fullName] and [entry._user.email] but its not getting replaced with the actual user name or email value at the time of viewing the form. I am new to the confluence page design. Looking for your guidance to troubleshoot this issue.

<ac:parameter ac:name="fieldName">ReqName</ac:parameter>
<ac:parameter ac:name="fieldLabel">Requestor Name</ac:parameter>
<ac:parameter ac:name="type">read_only</ac:parameter>
<ac:parameter ac:name="required">true</ac:parameter>

 

Thanks

Abhik Banerjee

1 answer

1 accepted

1 vote
Answer accepted
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.
April 23, 2021

HI

Default value as a parameter in Field Definition expects and supports static values only.

To set the value dynamically you can either use ConfiForms Field Definition Rules or use the following approach

http://recordit.co/CzdzfaN44X 

Please also note that there is really no need to track this information manually as each record in ConfiForms tracks created/createdBy metadata for you automatically (among some other fields https://wiki.vertuna.com/display/CONFIFORMS/Documentation )

Alex

Abhik Banerjee April 23, 2021

Thanks a lot Alex. The approach defined on the http://recordit.co/CzdzfaN44X has worked for me.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events