Okay
  Public Ticket #2686065
Registration Form Fields
Closed

Comments

  • Jemma Walsh started the conversation

    Hello,
    We have begun to set up a registration form for our website, however, we have run into a couple of issues.

    1. Is there a way to add validation to the fields? Or add a character limit (ie. ensuring that someone can't enter an address line longer than 50 characters as that's where the shipping fields on our systems cut off. 


    2. When selecting 'number', instead of adding a number field for people to write it, it shows the user a 'step, which begins at 0.00001. This is confusing for people who will be adding in VAT numbers or company numbers as there isn't a decimal point and they shouldn't need to be able to add/subtract decimal points. Would we be able to remove this? 

    Any help would be greatly appreciated!

  •  2,131
    WebWizards replied

    Hello Jemma,

    Thank you for purchasing our plugin,


    For both 1) and 2) , these are input field settings that are simple to add in HTML, but our plugin doesn't have settings for every single option, so things like character limits and number step can't be set up in plugin settings directly.


    It would be simple to add these with JavaScript snippets.

    For example:

    $("input[name='b2bking_custom_field_15'").attr('maxlength','20');
    

    would add a character limit

    or

    $("input[name='b2bking_custom_field_15'").attr('step','1');
    

    would add a number step of 1


    If you have a developer on your team, they should be able to set this up. But if not, I can also send you the right snippet if you give us a link to your registration page, and the exact details of what you need for what fields.


    Kind Regards,

    Stefan