Hi Tihomir,
Thank you for your quick answer.
I’m working on the localhost. It’s not possible to access my backend right now.
The checkboxes are being created automatically with random names after an image is uploaded. I tried to find out the names of the checkbox elements with the
Inspector Element in Firefox.
There are two images uploaded right now, and these are the checkboxes.
Checkbox1:<input onchange="bfCheckUploadValidation('ff_elem100', this, 'ff_nm_bfQuickMode243881[]')" value="1" name="cb_delete_100[0]" id="cb_delete_100_0" type="checkbox">
Checkbox2:<input onchange="bfCheckUploadValidation('ff_elem100', this, 'ff_nm_bfQuickMode243881[]')" value="1" name="cb_delete_100[1]" id="cb_delete_100_1" type="checkbox">
What name should I use in your code ?
I tried this name for the checkboxes:
ff_nm_bfQuickMode243881[]
And this is the name of my
upload element in the form:
bfQuickMode243881 My code looks like this (but no luck):function ff_bfQuickMode243881_validation(element, message) {
if (typeof bfSummarizers == "undefined") {
alert("Flash upload validation only available in QuickMode!");
return ''
}
if (JQuery('#bfFlashFileQueue' + element.id.split('ff_elem')[1]).html() != '') {
JQuery('[name="ff_nm_bfQuickMode243881[]"]').prop('checked', true);
return '';
}
if (message == '') message = "Please enter " + element.name + ".\n";
ff_validationFocus(element.name);
return message;
} // ff_ bfQuickMode2438_validation
Am I using the wrong name?
Kind regards,
Alex