Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.42k stars 1.99k forks source link

Form Blocks: None of the text field have length restriction setting in any of the forms #52494

Open sowmya2709 opened 3 years ago

sowmya2709 commented 3 years ago

None of the fields have length setting in any of the forms, for example - Appointment form, Name, Message etc has no length restriction

What A setting to limit the length of the fields would be a nice feature for non-technical users who cannot use CSS classes. this could be a very basic limit, like Typography which lets you update the text size from small to large

Why Not all users would be technical enough to use CSS class etc

How Add a Field Length restrictions section in the field setting right menu. This can be done for fields from 50 to 100 for text fields, and 200 characters for text blocks. This need not be very robust a basic restriction will also add value

Additional context Add any other context or screenshots about the feature request here. image

jerrysarcastic commented 2 years ago

Noting that we had a site owner report in our public forums that they have a similar issue when setting form field widths to 50%, where the content seems to not display correctly due to the lack of the same setting for fields: https://wordpress.com/forums/topic/draft-looks-fine-but-preview-is-wrong/?view=all

In this case the site owner had to resort to adding extra characters to their headings to enforce a 100% width, which seems to have worked but a setting to control the width of labels would be an improvement. Another option is to find a way to add simple layout tools like nested columns blocks, to create a simple layout within the form