Viewing 6 replies - 1 through 6 (of 6 total)
  • Not at the moment, how many more do you need?

    Thread Starter trendaxiom

    (@trendaxiom)

    I do alot of intake forms and it changes. I would like to be able to add form fields as needed and as many as needed. Is that possible?

    Not without me adding a load of code. The problem is related to the origins of the plugin which were as the name suggests a quick and easy to use contact form. It has grown somewhat over the years but the basic structure hasn’t changed. Adding new fields means messing with the core functions and I’m not sure I’m a skilled enough developer to attempt this.

    Sorry about this but the effort needed to research and implement your request is huge and I just don’t have the free time any more.

    Thread Starter trendaxiom

    (@trendaxiom)

    I completely understand and thanks for taking the time to respond. Can you tell me how to add extra fields on my own and which files I would need to edit? Thanks!-Tom

    Tom,
    First thing to do is set up the defaults. In quick-contact-form.php find the function: qcf_get_default_options.

    This where you add the new fields.

    Next job is to do the admin. Go to settings.php and find the function qcf_form_options.

    You can copy the existing selectors (numbered field1 to field 14
    ) and just change the various field numbers. Add the new field numbers to the array $active_buttons and most of the work is done.

    Last thing to do is display the new fields. Back to quick-contact-form.php and add the new fields to the three function qcf_display_form, qcf_verify_form and qcf_process_form.

    It’s not a complicated thing to do but it does needs a bit of care. The key is making sure you set up the defaults.

    If you have any problems it’s better to send me an email.

    Thread Starter trendaxiom

    (@trendaxiom)

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Additional fields?’ is closed to new replies.