Data Certification-Make "Optional comment for checked elements" mandatory for failed elements
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2014 06:10 AM
Hi,
I know it may not be a good idea to play around with OOTB functionality.However , would to know if there is a way where I can alert user to fill in "comments" without fail for the failed certification elements.Looked at the different UI Macros and UI Pages but not able to see from it gets controlled.
Any thoughts or other means of implementation?
--Mahesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2015 02:04 PM
Hi Mahesh,
Could you please share if you were able to accomplish this requirement?
Thanks,
Raghu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2015 05:06 AM
Hi Raghu,
I have used onLoad Client by checking the document.getElementById('fail_checked_elements') onclick function.
If no comments entered then alert user else continue to excecute the fucntion failCheckedElements().
Regards,
mahesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2015 11:09 AM
Thanks Mahesh for the input! I appreciate it!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2020 10:33 PM
Hi Mahesh,
Could you please give more details, what you are getting by this and how .document.getElementById('fail_checked_elements')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2018 05:12 AM
I have now found out a way to do it by directly amending the function failCheckedElements() in the UI script 'CertificationTaskScript' with the following script:
function failCheckedElements() {
var e = $("cert_comment");
if(e.value == 'Optional comment for checked elements'){
g_form.addErrorMessage(getMessage('Comment is required for failing certification elements'));
return false;
}
else{
g_form.clearMessages();
processCheckedElements(getCheckedElements(), "failElements");
}
}