Limit amount of characters per value

Hi there!

I have a Textfeld attribute for submitting listings and I want to have a limit of 30 words for that Textfeld.

Is this possible!?

Thank you!

Please try to set the Maximum Length option when you edit the attribute. Please note that it is the maximum length of characters (including spaces) not words

1 Like

Alright, then I go with character count. Thank you!

Is there a way to limit the amount of characters for the description as well?

Thank you for your help

If you mean listing description then please try this PHP snippet

add_filter(
	'hivepress/v1/forms/listing_update',
	function( $form ) {
		$form['fields']['description']['max_length'] = 123;

		return $form;
	},
	1000
);

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.