- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2014 03:17 AM
Hi All,
I have to validate whether user has added an attachment or not before allowing him to submit a request.Please help me if any of you have done a similar kind of implementation.
Regards,
Kirti
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2014 04:59 AM
Write the below on submit script
function onSubmit() {
var attachmentList = gel("header_attachment_list_label");
if (attachmentList)
{
if (attachmentList.style.visibility == "hidden" || attachmentList.style.display == "none")
{
alert("Please attach the required file.");
return false;
}
}
}
Regards,
Harish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2014 05:12 AM
Hi Anurag,
Its on Catalog Item..As using Gliderecord is not prefereable client side..I felt harish's script would help to suffic this requirement.
However this also workd ::) tnx for response
Regards,
kirti

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2014 04:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2014 05:10 AM
Thanks Kalairasan this helped me gain knowledge

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2014 04:59 AM
Write the below on submit script
function onSubmit() {
var attachmentList = gel("header_attachment_list_label");
if (attachmentList)
{
if (attachmentList.style.visibility == "hidden" || attachmentList.style.display == "none")
{
alert("Please attach the required file.");
return false;
}
}
}
Regards,
Harish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2014 05:09 AM
Perfect tnx Harish