Author Topic: Custom Field text input  (Read 199 times)

Kate7

  • Beginner
  • *
  • Posts: 1
  • A beginner
  • VirtueMart Version: 3.8.4 10335
Custom Field text input
« 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?

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3134
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Custom Field text input
« Reply #1 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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.