Changes

Validating File Attributes

420 bytes added, 12:40, 28 August 2013
no edit summary
* This script will prevent saving or submitting a record unless there is a valid PDF stored in the '''Applicant CV''' single file field, and it must be 10 or less pages in length. ([[sbfunc]] is not run on Save Draft, so the record can be saved with Save Draft, if available)
<prestyle="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
function sbfunc(frm){
var aCV=parseInt("@Applicant CV.numofpages@");
* The number of files (PDF or otherwise) in a Multiple Files field can be evaluated using '''numoffiles'''.
<prestyle="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
function sbfunc(frm){
var supDocs=parseInt("@Supporting Documents.numoffiles@");
<prestyle="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">
function onloadfunc(){
if("@Applicant CV.[encrypted]@"=="Encrypted")
8,849
edits