Last active
October 10, 2022 16:44
-
-
Save thisnameissoclever/6cf5a2c9b494fc907683467029a5c734 to your computer and use it in GitHub Desktop.
ServiceNow Expandable form message with some text hidden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
showSimpleLoadingMessage('Retrieving data'); | |
var arrListElements = slowFunctionThatReturnsAnArrayOfStrings() || ['Element 1', 'Element 2', 'Element 3']; | |
var flyoutListHTML = getHTMLListFromArray( | |
arrListElements, | |
'disc', | |
'Element: ' | |
); | |
g_form.clearMessages(); | |
showExpandingFormMessage( | |
'This message expands', | |
flyoutListHTML, | |
'Show more', | |
'Hide details' | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment