Here is one of the examples how to use JavaScript in Editable Prepare tab of your ContentBuilder. This example shows how to prevent upload of files with special characters.

How to prevent users to upload files which contains special characters?

You can try to apply following script. Put the script in the Editable Prepare of your view:

jQuery(document).ready(function () {
jQuery(".cbToolBar button").click(function () {
var filename = jQuery(".cbUploadField input").val();
if (/[^a-z0-9]/gi.test(filename)) { // anything but a-zA-Z0-9 - add other permitted characters to suit
alert(filename + " contains invalid character(s)");


Special Offer

Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!