Allowed Content

6 posts by 3 authors in: Forums > CMS Builder
Last Post: December 31, 2018   (RSS)

By moh3 - December 26, 2018

Dear Cms builder, i was wondering how to use the (Allowed Content) option when creating a field can you provide a working example ?

By gkornbluth - December 26, 2018 - edited: December 26, 2018

Ki moh3,

When you create an upload field, there's under upload settings there's a field called File extensions allowed in the input validation area.

Just put in the file name extensions that you want, separated by commas and no periods.

There's a small issue with certain file types right now, but is should be fixed shortly. (See the post about CMSB-v3.50-Released---FREE-VERSION at the top of the forum topics)

You might want to take advantage of the free 3 month trial of my CMSB Cookbook.

Hope that helps,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By moh3 - December 31, 2018

Dear I was referring to the text and other fields where there is an option for limiting certain chars But can't find the correct syntax

By gkornbluth - December 31, 2018

If you are using a text field in a section editor to enter the data, there's an allowed character criteria that you can set up to restrict the characters that are acceptable.

That ability does not exist for a text box.

However if you are using a front end form to enter the data you can set up many restrictions.

here's an example.

https://www.youtube.com/watch?v=OpajusnOfYo

There are also many validation criteria that you can use.

Do a Google search for things like

restricting characters entered into an html form

validating html form field entry

What exactly is it you want to accomplish?

Hope that helps,

Jerry Kornbluth

The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By daniel - December 31, 2018

Hi moh,

When editing a text field, under Input Validation, the Allowed Content dropdown can be set to either "Only allow characters:" or "Disallow characters:". Below that is a text field to enter the characters you wish to allow/disallow. For example, if we set the dropdown to "Only allow characters" and enter "abcd" in the text box below (no spaces or commas), that field will only be able to be saved with combinations of those four characters. I've attached a screenshot as an example.

Let me know if you have any further questions!

Thanks,

Daniel
Technical Lead
interactivetools.com