- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2016 07:24 AM
I know the onLoad script for automatically displaying More Information text, but was wondering if it's possible to only open it if a field is changed after opening i.e. type of request = 'delete'?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2016 07:48 AM
Your client script would watch the type_of_request variable. The (untested) script would look like this:
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
if (newValue == 'delete') {
var myVar = g_form.getControl('comments_note');
if(myVar) {
var myVarHelp = $('question_help_IO_' + myVar.id.split(':')[1] + '_toggle');
toggleVariableHelpText(myVarHelp);
}
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2016 07:52 AM
Thanks Chuck,.
You're a prince among men!
I'll test it out later today

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2016 07:54 AM
You're very welcome. I think you gave me the answer really... shhh!
Let me know what you find.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2016 10:58 AM
Hi Chuck,
Worked like a charm - Well done! Again many thanks!
Kevin

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2016 11:01 AM
Happy to hear you got your requirement met. Thanks for participating in the community.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2017 06:32 AM
How could I get this to hide if the value changes? For example, I have this working if 'newValue == 'Yes', but how could I get the help text to be hidden again if value = 'no'?