Currently the flagged/unflagged message is limited to 128 characters. It would be great if there was a way to extend this.

Thanks in advance for the feature request consideration.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

NWOM created an issue. See original summary.

NWOM’s picture

Title: Flagged/Unflagged Messaged limited to 128 characters » Increase Flagged/Unflagged Message limit from 128 characters
joachim’s picture

Version: 7.x-3.x-dev » 8.x-4.x-dev

New features are going on 8.x-4.x.

bash321’s picture

martin107’s picture

@bash321

The length restriction comes from the textfield type's default value. [ The Flag entity places no restriction on the length! ]

see FlagFormBase::buildForm()

It looks like we need to add a #maxlength variable/property, to one or more of the many message textfields, for example

$form['messages']['flag_message']

In short I think we can provide a solution without using the remove_field_label_length_limit module.

If you would like to write a patch, I will be available to review, and help out where appropriate.

Would you give an sample of the text that you want to enter into the message field? My general advice would be to always keep these messages short but practically speaking - I want to see what you have in mind - very long passages of text will have consequences for the way some pages are themed.

bash321’s picture

Yes I would like to write a patch. I have started working on it.

bash321’s picture

martin107’s picture

Hi bash321,

just thought you should know your patch has zero bytes.

If you are generating patch for the first time ... and would like some help... just ask and I will answer any questions, If you sent me a email that is probably best rather than us sorting it out in the issue queue.

bash321’s picture

FileSize
547 bytes

@martin107 this is my 1st issue. Please help me out if some mistake.
Thanks for your support.