Set the dynamic name on the homepage

Wei_ Ling
Tera Guru

Wei_Ling_0-1672206288884.pngWei_Ling_1-1672206327330.png

As shown in the picture, I want to set a dynamic display of the name of the current user in the homepage page, and the setting in the page designer is the title field.

At present, my practice is to query an extra line of HTML in the widget. I would like to know if there is any way to display it directly in the configuration of the page designer.

How should I set the dynamic name/first name?

1 REPLY 1

RaghavSh
Kilo Patron

Since it is directly taking title as "options.title" as string, displaying it dynamically will need a code change in server side and HTML.

Getting the first name of logged in user and store in data.user and display it in HTML instead of options.title.

This will require widget customisation and cloning.

Screenshot 2022-12-28 at 12.48.52 PM.png


Please mark the answer correct/helpful accordingly.


Raghav
MVP 2023