Component Parameter field validation

A quick question with regards to creating parameter fields within a component. I’d really lke to be able to limit the amount of characters input on a text or text area field. For example, a title field may not work past 90 characters and a text area might have a max of 300 characters. I have a feeling this isn’t possible, but wondered if there was some way to affect a workaround where I could target the input field via some javascript validation, but again I’m not sure how that would work given that it’s Cornerstone?

Not really a request for support with this per se, but it’s more to ask if there’s a known way to do this. Could I even setup the parameters via ACF linked to the ‘component’?

Regardless, it would be great if you could look to build this kind of feature into a future version. The ability to create reusable components with input fields within Cornerstone is amazing, but having more control would be amazing.

Hello @geoffmartyn,

Thanks for writing in! Regretfully we do not have that kind of option as of the moment. It would need custom coding in creating your own parameter that will include field validation. Yes, this is beyond the scope of our support.

With regards to ACF fields linked to the component, you may create your component and load up the ACF Dynamic content. If you are not familiar with dynamic content, this documentation can help:

Hope this helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.