Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Moran 285 posts 934 karma points
    May 02, 2016 @ 13:42
    Moran
    0

    Creating char limit in text fields

    Hi Is there a way to limit the number of chars on an existing field in umbraco? I am looking for something that will limit the number of chars on the text string and will notify the user on error and can be adjusted:

    Even if I have the same text string property on different fields I will be able to give a different limit to each one.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    May 02, 2016 @ 14:12
    Jan Skovgaard
    0

    Hi Moran

    Something like this? https://our.umbraco.org/projects/backoffice-extensions/kraftvaerkmaxlength/

    There also once was a nice blogpost by Mark Drake about how to create your own texstring / textbox property editor with character limitations where the color would change from green to yellow and then to red depending on how many characters were wridden. But it seems he has deleted / removed the blogpost unfortunately. But the repository is still on github here https://github.com/markadrake/Umbraco-Property-Editors/tree/master/App_Plugins/propertyeditors

    The comments for the blogpost stille exists but the link is giving a 404 unfortunately but perhaps Google's cache or the way back machine can help https://disqus.com/home/discussion/markdrake/customumbracopropertyeditortutorialcharactercounts/best/

    Does this help?

    You would of course need to create different instances if you need different character limitations.

    /Jan

  • Moran 285 posts 934 karma points
    May 05, 2016 @ 12:01
    Moran
    0

    Thanks Because my client has entered his content to the property editor, I am afraid that changing the property fields will erase his content. Is there a way to build something that can be applied to existing properties?

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    May 05, 2016 @ 21:42
    Dan Diplo
    1

    If the existing property editor stores text then you can swap with any new editor that also stores text.

  • Safak Ulusoy 9 posts 29 karma points
    May 05, 2016 @ 20:19
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies