Problem/Motivation

It would be nice to provide some support for maximum length of the Link custom field type when using the Link or Linkit widget.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dave reid created an issue. See original summary.

dave reid’s picture

Alternatively, I'd love to be able to integrate https://www.drupal.org/project/maxlength automatically with all the widgets instead of having to write custom maxlength settings.

apmsooner’s picture

Not all of the widgets would be relevant for maxlength but this could be possible for the link widgets pretty easily like we do for the text widget: https://git.drupalcode.org/project/custom_field/-/blob/4.0.x/src/Plugin/...

apmsooner’s picture

I honestly havn't tested the maxlength stuff on textfields even for quite a while but pretty sure it works but perhaps limited in some of the settings in comparison to maxlength module. My longer term goal was to just have our own maxlength js and rid the dependency on the module as I'm not fond that its still using Jquery. It shouldn't be that big of a deal to convert their script to pure js. Alot of these other modules are just not too actively maintained to even bother spending my own time contributing to.

apmsooner’s picture

Status: Active » Needs review
dave reid’s picture

Status: Needs review » Reviewed & tested by the community

Tested and confirmed latest version.

apmsooner’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

apmsooner’s picture

Status: Fixed » Closed (fixed)