• Resolved TokerCoughin

    (@tokercoughin)


    Hello! I was wondering what the filters are / how to use them, so I can customize the text-boxes that appear with the address input in VFB.

    Is there a way to make it only require ONE address ? Or must I remove the input boxes through a filter ? If I have to use filters, what is the filter to use to restrict it to just the one Business name / address. Also, how do I use the filters ? Where do I put the filters ?

    Thanks in advance,

    Sincerely,

    Chris.

    https://www.ads-software.com/plugins/visual-form-builder/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Matthew Muro

    (@mmuro)

    Hey Chris,

    Good question. A filter is basically a way to insert or change the output of something in WordPress. You can use them by either creating a plugin or inserting some code into your theme’s functions.php file. The easiest way is the functions.php method.

    A little PHP knowledge is helpful when using them, but not always required.

    For changing the address field, you can use the vfb_address_labels filter. If you just want to remove the second address line, you can copy and paste the example code into your theme’s functions.php file and be done.

    Hope that sheds some light!

    Thread Starter TokerCoughin

    (@tokercoughin)

    I certainly have a little PHP knowledge, so I can probably make this work. Thanks for the reply Matthew, good support goes a long way for me.

    I will definitely try to put the filters in my functions.php file, and see if I can’t trim down on the amount of address info required.

    Thanks ??

    The page I’m trying to get this to work on is : https://www.korgcanada.com/korg-kollege

    Was hoping maybe you could take a look at it (the form in question is by default hidden by a collapsing panel, click it to reveal) Could you let me know if the current text boxes under “ship-to address” is normal ? I’m confused as to why it requires so many by default, and not just the one address. Perhaps you can shed some light on this.

    Also, as a side note, might you know why the email I set the “send to” setting to would NOT be getting the output email from the form ? I tried placing my own email in there, and had no trouble receiving the email, but my colleague who it’s supposed to be sent to, is not getting anything.

    Thanks in advance,

    Sincerely,

    Chris.

    Plugin Author Matthew Muro

    (@mmuro)

    The Address field includes the most common elements for an address. You can certainly “build” your own using standard text fields and changing the field layout to mirror the address field. But, the address field will collect everything into a single set and display it as one field, rather than multiple fields.

    As for email problems, check the FAQ. There’s some helpful troubleshooting tips in there.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Filter address line’ is closed to new replies.