Is it possible to limit characters in a given field? For example: Limit number of characters in a title or description
In this case below, I want to limit the number of characters in the "description" field so that the text does not go outside the card. Is there this possibility in DNN?
in "Fields" I can only edit the input type... would it be in this part that I could limit it?
The module your working with is not standard DNN but 2SXC. Great module and a lot of documentation on https://docs.2sxc.org/
Not the direct answer to your question but maybe someone else can elaborate ;-)
FYI, Marcos... I moved your post to a forum that better matches the conversation. 😉
There may be an easier way, but one option is using a regex to validate the field that would only accept x number of characters. Something like: ^.{0,100}$ Which means ^ starts with . Any character {0,100} zero to a hundred times $ ends
To help a bit with what Daniel Valadas mentions, you can find this in the Field Validations section in the field configuration view. I was going to post a screenshot here but had an error.
Awesome, glad you got it working!
Awesome Marcos! Thank you for sharing the regex code
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.