web url in contact form

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #11647
    Boonodohboonodoh
    Member

    Is it possible to allow a web url field in the contact form without requiring the user to type in http:// – it tells the user that it’s not a valid url when http:// is missing.

    #11681
    RaghavendraRaghavendra
    Moderator

    I am thinking probably the validation itself is not required since the validation kicks in only on user entering the value. The URL itself can be left blank since it is not required field unlike email or name.

    Can you set the line number 311 to 314 of js/main.js to –

                    contact_url: {
                        required: false,
                        url: false
                    },
    

    and see if that helps? Hope this meets your needs.

    #11683
    RaghavendraRaghavendra
    Moderator

    BTW, the validation plugin we use –

    http://jqueryvalidation.org/url-method/

    forces a validation check on the field and allows only if http:// prefix exists.

    #12423
    Andresgmzandresgmz
    Participant

    Hello guys:

    Im having the same issue with the default contact form. ! how can modify the default contact list or remove the opcion WEB URL for something else or an easy way to user add their website without http:// – it tells the user that it’s not a valid url when http:// is missing.
    (attached picture)

    Thanks in advanced

    Andres

    Attachments:
    #12442
    VeenaVeena
    Moderator

    If you don’t need the url validation then pls give input type as “text” instead of “url” in line no:50 of file framework/shortcodes/contact-shortcodes.php .

    input type="text"
    
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.