WordPress.org

Ready to get started?Download WordPress

Forums

BigContact Contact Page
[resolved] [Plugin: BigContact] Optional fields (4 posts)

  1. davidpey
    Member
    Posted 2 years ago #

    Hi again guys,

    Sorry about the flood of messages - but I do hope they prove to be useful in future development. Thank you once again for such a great plugin. I look forward to tracking it's development.

    Just another thing: my business requires a phone number and email address in the contact/appointment form. Is there any way of changing a text box to a compulsory field? And vice versa?

    I'd also like to remove the xxx-xxxx-xxxx from the telephone number text box. Is this possible?

    Thanks!

    Dave

    http://wordpress.org/extend/plugins/bigcontact/

  2. NorikDavtian
    Member
    Plugin Author

    Posted 2 years ago #

    Hi David,
    Thanks for using BigContact.

    We have been experimenting with the current form design since 2007, and we have found that making a phone number a required field decreases contact form conversion rate.

    However under current plugin license you are able to modify the code as you wish.

    For the pattern part, we are releasing another update that removes the pattern and placeholder for the phone field, as the phone format might be different for international users. Currently this is around line 56 of file wp-content/plugins/bigcontact/classes/form.php

    placeholder="###-###-####" pattern="^\D?(\d{3})\D?\D?(\d{3})\D?(\d{4})$"

    As far as making the phone field required, you could add a required attribute to the phone input form on the same above file, and add some validation for it in wp-content/plugins/bigcontact/include/contact-json.php

    You might also want to keep your settings page in harmony with your changes by removing the optional text from phone input field in admin
    wp-content/plugins/bigcontact/view/BigContact.phtml

    I hope this helps, and please rate us a 5Star

    Thanks
    -Norik

  3. davidpey
    Member
    Posted 2 years ago #

    Hi Norik,

    Thank you for this information! I find it interesting that conversion rates are lower with required phone fields. I will bear this in mind.

    Regards,

    David

  4. rdm1244
    Member
    Posted 1 year ago #

    is there a way to remvoe optional fields if all you want is Member userid (changed name label to reflect this), email address and message?

    A blog typically does not need the phone and address.

    I removd the field labels by blanking and pressing enter but the field itself still shows on the screen.

    Great Plugin Though.... makes creating the Contact Page a 5 minute, or less, process.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic