VirtueMart Forum

VirtueMart General => About VirtueMart - not for support posts => Topic started by: Kate7 on October 23, 2020, 11:19:04 AM

Title: Custom Field text input
Post by: Kate7 on October 23, 2020, 11:19:04 AM
Hi
I am wanting to make a custom field where you can restrict how many characters a personal message for a book can be.

I have made a custom field using a plug-in then selecting VM Custom - Customer text input then I select size of the input to 30 then I have tried both options price per letter and per input. When I test this it lets me exceed 30 characters - why is this?
Title: Re: Custom Field text input
Post by: Jörgen on October 23, 2020, 12:56:35 PM
I guess size of input is the size of the input box, if am I right, not the length of the text. Have you looked at the original code, is there perhaps a check already ?  The ask a question has a check for size of input text, check that out and see how it is done.

Jörgen