Mandatory attachment
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 03:18 AM - edited 08-01-2023 01:41 AM
We have a custom widget form used to create/update record in "sn_hr_core_employee_form" table.
I got attached widget which I want to modify for my instance.
I want to make attachment mandatory such that before insert/update via widget/portal it should through error and atleast 1 attachmnet should be available to load.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 03:23 AM
Hello @Hafsa1
Use this script for mandatory attachments :-
var count = getSCAttachmentCount();
if(count <= 0) {
alert('You must attach the completed form before submitting this request.');
return false;
Plz Mark my Solution as Accept and Give me thumbs up, if you find it Helpful.
Regards,
Samaksh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2023 04:22 PM
I'm using custom widget