Get the value of System Fields using Custom Javascript
In this guide, we will explain how can we get the value of System Fields using Custom Javascript. If you have any questions, please email us support@formyoula.com.
Please use the following Javascript for getting the required values:
To get the full name(first name and last name) of the Account Owner
window.formyoula.form_fields.Formyoula_Created_By
To get the username of the account
window.formyoula.form_fields.Formyoula_User_Username
To get the Formyoula Form Id
window.formyoula.form_fields.Formyoula_Form_Id
To get the User's Custom Attributes JSON
window.formyoula.form_fields.Formyoula_User_Attributes
To get the User's Country
window.formyoula.form_fields.Formyoula_User_Country
To get the User's Language Locale
window.formyoula.form_fields.Formyoula_User_LanguageLocaleKey
To check if the user is an admin or not
window.formyoula.form_fields.Formyoula_User_Role
To get the value of Formyoula User's Salesforce ID if the user is Signed in with Salesforce
window.formyoula.form_fields.Formyoula_User_Salesforce_Id
For any questions, please contact us - support@formyoula.com or the Formyoula in-app chat 🙂Â