How to set first name for user refence field

Shawn33
Tera Expert

I have a User Reference field called "First Name" in catalog item, by selecting user it needs to populate only first name of that user, not fullname.

1 ACCEPTED SOLUTION

Musab Rasheed
Tera Sage
Tera Sage

Hi Shawn,

Since that is reference field it's not possible to display only first name because 'display' value on sys_user table can be true for only field and by default it is true for full name I guess hence it will display full name once you select, and if you make display true for first name then it will affect everywhere hence this is not recommended. Mark my answer as correct if that helps.

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab

View solution in original post

9 REPLIES 9

I don't think it is possible

Please hit like and mark my response as correct if that helps
Regards,
Musab

Okay i'll accept, i got idea now , thank you for your  response.

If your query is resolved, please close the thread by marking my initial response as correct

Please hit like and mark my response as correct if that helps
Regards,
Musab

Hi,

I agree to what Musab had said. If it really needs to show just the First name, add a new field which will populate the first name to the field and show this new field and hide the reference field which you initially selected. This is a workaround. This is not recommended but if you really need to make it work that way, then you can give this approach a try. Havent tried it though.

I would approach it similarly too. Create 2 fields--one for the full name, auto-populate this name onLoad, then hide it in all views. Second field: first_name, create an OnChange script, then dot walk it (requested_for.first_name) to set the value of this field. I have not tried this either as I always have to show full name in all of my items. Good luck with your project! Please do share how you achieve their requirement. 



Want to connect? Follow me on LinkedIn