You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

This class provides access to the information about the current user and his current roles. The SimpleUser API usage is getting rid of using slower SimpleRecord queries for user information retrieving,

s_user.getFullName()


This method returns the first and last name of the current user (see the values of the fields "First name" and "Last Name").


Return:

TypeDescription
StringThe values of the fields.


Example:

s_user.getFullName()
const commentValue = `${s_user.getFullName()}: "${s_form.getValue('comment')}"`;
s_form.setValue('additional_comment', commentValue);

  • No labels