Code

Discussion on Quform - WordPress Form Builder

Discussion on Quform - WordPress Form Builder

Cart 36,168 sales
Recently Updated

ThemeCatcher supports this item

Supported

This author's response time can be up to 1 business day.

6663 comments found.

Hi and good day,

The issue with the Export still happening and i think its Due to not being compatible with certain plugins such as Visualizer Plugin,

/public_html/dev/wp-content/plugins/quform/library/PhpSpreadsheet/vendor/markbaker/matrix/classes/src/functions/adjoint.php. Error message: Cannot redeclare Matrix\adjoint() (previously declared in /home/islamicf/domains/islamicfinancenews.com/public_html/dev/wp-content/plugins/visualizer/vendor/markbaker/matrix/classes/src/Functions/adjoint.php:20)

Any way it can be fixed the dependency?

Yes this what we doing now, but may i know if the update will be anytime soon? thanks

Hi

Hopefully I’ll get this out early next week.

Regards, Ally

Great to know that,

Thanks for the effort,

Hi Ally

Is it possible to add user roles to logged-in users based on check box selection via a registration form? So, for example, there is a registration form with three checkboxes stating “Session 1”, “Session 2”, and “Session 3” and if the user checks all three boxes they will receive three additional user roles; if they only select “Session 1” they will receive one additional user role etc.

Kind regards

Hi

It will require some code to do this, for example this code should work:

add_filter('quform_post_process_1', function (array $result, Quform_Form $form) {
    if (is_user_logged_in()) {
        $user = wp_get_current_user();
        $values = $form->getValue('quform_1_3');

        if (in_array('Session 1', $values, true)) {
            $user->add_role('role-1');
        }

        if (in_array('Session 2', $values, true)) {
            $user->add_role('role-2');
        }

        if (in_array('Session 3', $values, true)) {
            $user->add_role('role-3');
        }
    }

    return $result;
}, 10, 2);

Replace the number 1 on the first line with the form ID and replace 1_3 with the checkboxes field unique ID, then set the role names to suit.

Regards, Ally

Hi

Im unable to export entries from the form. I get a wordpress error

Hi

The PhpSpreadsheet library, that Quform uses to generate the export files, requires the following PHP extensions: XML, xmlwriter, mbstring and zip. Can you check if these are enabled on your server, or ask your host to check and enable them?

Regards, Ally

Hello, one question please. Can the form dynamically populate a field with WP field like Post Title or Username for example? Building a listing website where we want the visitor to as for inquiry and we get the Page title so we know what he’s asking for.

Hi

Yes, see this page for how to set the value of fields dynamically.

Regards, Ally

Good day. Are you planning to add a slider element?

Hi

It’s in our plans for the future. In the meantime you could use this guide to implement it.

Regards, Ally

I was wondering if i can make the recipient variable and use it in the shortcode. I have a directory theme where different users post their listings. If i could make the recipient variable so that the user can use it in the shortcode that would be wonderfull. Is this possible ? Shortcode something like [QUFORM formname Recipient=”ok@something.com”

Hi

It’s possible do this using a Hidden field and the Dynamic default value feature (see the Shortcode section). Then in the settings for the notification at Edit Form – Settings – Notifications, at the Recipients field you can click insert variable (code icon) and choose the Hidden field.

The downside of this approach is that the email address will be in the source of the page and could be modified. A more secure way to do this would be to add a custom field on the listing post containing the recipient email address, then in the notification recipient field choose “Custom Field” in the menu and replace my_custom_field with the name of the custom field in the field.

Regards, Ally

Hey, Can I use Integromat with your plugin?

Hi

I believe it’s possible to use our free Zapier add-on to do this, and in the integration settings enter the URL of an Integromat custom webhook.

Regards, Ally

Hello, I would like to add a sendinblue newsletter with an opt-in function. Is that possible?

Hi

We don’t currently have an integration add-on for Sendinblue but it’s possible to do the integration with our free Quform Zapier add-on. In the integration settings you can use conditional logic to only trigger the integration if a checkbox is checked. Then at the Action step of the Zap choose Sendinblue – Add or Update Contact.

Regards, Ally

Hi Ally, I sent you a direct email on a minor issue, let me know when you get a chance. I also just encountered a new issue, but I’ll need to send you a detailed email explaining it. Hoping you could help me resolve it. Thanks.

Hi

I sent you a reply, shoot me an email when you are ready :)

Regards, Ally

Sent! Thank you so much.

Hi i have a question: why does the quform_sessions table become populated with more than 15 mb of data after a few days? every time i have to empty it, is there a way to avoid it? thank you

Hi

You might want to check that scheduled events are working on your server, you can check that at Tools – Site Health. Session data that is over 24 hours old is cleared out automatically by a scheduled event. You can use the plugin WP Crontrol to check if events are late and trigger them manually.

Regards, Ally

everything seems to work fine… i don’t know…

Hi

Please try deactivating Quform and activating it again, it should recreate the scheduled event if for some reason it is missing.

Once that’s done you could use the WP Crontrol plugin (Tools – Cron Events) to check that the event quform_session_gc is scheduled, which will show when it will be run next. Check the database after that time to see if it worked.

If you are still having issues with it after that, would it be possible for me to get some temporary admin access to your WordPress Dashboard in order to help investigate this issue further for you? If so, please create a user with the “Administrator” role and send a message through the contact form on our CodeCanyon profile page with the username, password and site URL. Thanks!

Regards, Ally

Hello, the “next” button on multi steps forms has stoped working on mobile devices

Hi

If possible could you try checking for a conflict with another plugin or the WP theme using this method?

Would you be able to post a link to the form page or send the link privately through the contact form on our CodeCanyon profile page?

Regards, Ally

Hello, I just did. The conflict was with my cache plug-in breeze. Thank you

Hi,

I am trying to set Regex validation. But I am facing two errors. Hoping you can help me fix them. Let me write my problems.

1. I am trying to set a UK Car Registration validator. Regular car Reg, I can cover with this code.. /{2}[0-9]{2}\s?[A-Z]{3}$/ But or special, I have code, but it do not allow me to add multiple Regex. If I add two REGEX validation, it only pass the result if both of the validation are true (AND GET). Can I do, (OR GET), like if any of them are true, it will valid the data? I want to use /[A-Z]{2}[0-9]{2}\s?[A-Z]{3}$/ /[0-9]{1,3}[A-Z]{3}$/ /[A-Z]{3}[0-9]{1,3}[A-Z]$/ And if any of them are true, I want it approve. Can I use three REGEX validator and make them OR GET? If not, can I use all three validation in one REGEX validator?

2. I am trying to get a UK postcode Regex validation code. Can you help? I am using this, ^(([A-Z]{1,2}\d[A-Z\d]?|ASCN|STHL|TDCU|BBND|[BFS]IQQ|PCRN|TKCA) ?\d[A-Z]{2}|BFPO ?\d{1,4}|(KY\d|MSR|VG|AI)[ -]?\d{4}|[A-Z]{2} ?\d{2}|GE ?CX|GIR ?0A{2}|SAN ?TA1)$ but not working.

3. I know there are TRIM filter to delete any space on the beginning and end of the filed data. Can I also TRIL any Space in between?

Many thanks Rokib

Hi Rokib

1. If you have multiple validators, all of them will need to pass to allow submission. You could combine the regex patterns into one:

/^([A-Z]{2}[0-9]{2}\s?[A-Z]{3}|[A-Z][0-9]{1,3}[A-Z]{3}|[A-Z]{3}[0-9]{1,3}[A-Z])$/

Or use a custom validator with custom code to check multiple different patterns.

2. Can you try adding the start delimiter / and end delimiter / to the pattern?

3. If you add an “Alphanumeric” filter (not validator) to the field it will strip any whitespace from the value before validation. That filter will strip anything that isn’t a letter or number.

Regards, Ally

I’ve purchased a 3rd license of this great plugin. There’s a bunch of other forms plugins out there, but this one in my opinion is the best right now. And backed by their excellent customer support, there’s no need for me to look anywhere else.

Thanks for sharing your work!

Hello, i’m using your free Mailchimp Add-on to integrate forms with mailchimp. Howevere, its only getting the emails, the other fields that i use on the form (like name and phone number) are not being saved on mail chimp. How can i fix this?

Hi

Have you set up the merge fields in the integration settings? For example: https://share.getcloudapp.com/geubN9yb

Regards, Ally

Nice! Thanks :]

Can your form limit users to submit form not more than 5 times?

Hi

Currently there isn’t a built-in option for this. We have some example plugins to implement this functionality. At either link below you can click Download ZIP to get an installable WP plugin.

Allow only one form submission per IP address (change the 0 to a 4 to allow 5 submissions, this is for all forms combined).

Limit form submissions to 1 per logged-in user (change the 0 to a 4 to allow 5 submissions, this limit is per form).

The code can be modified to suit your needs.

Regards, Ally

Hello, with google pagespeed insight i see this suggestion: Remove unused JavaScript code: …cache/quform.js 71,4 kb

Hi

You can go to Forms – Settings – Performance and choose the pages to load the scripts/styles on. So you could just choose the pages with forms.

Regards, Ally

When i write the form’s name, the plugin shows only articles…

Hi

At that option you choose the pages or posts to load the Quform scripts on, so if you have a Quform form on your contact page, type the title of your contact page and select that.

You could also try “Autodetect”, which will detect it automatically in most circumstances.

Regards, Ally

for “When to load scripts/styles” when i search pages no matter what it just shows the same 4 pages and not the one i searched. I tried disabling every plugin and theme aswell as clearing script cache and my cache and same thing.

Hi

That field searches for posts/pages in a way that other plugins can interfere with. Could you try it with other plugins deactivated if possible? Then save the settings and reactivate the other plugins.

I’ll see if we can do this in a different way that is less prone to conflicts in a future update.

Alternatively you can set that option to “Always” and add the following code to the WP theme functions.php file (or use a plugin).

add_filter('quform_enqueue_scripts', function () {
  $post_ids = array(1, 3, 5, 6);
  $post = Quform::getCurrentPost();
  $enqueue_scripts = false;

  if($post instanceof WP_Post && in_array($post->ID, $post_ids)) {
    $enqueue_scripts = true;
  }

  return $enqueue_scripts;
});

Replace 1, 3, 5, 6 in the code with the IDs of the pages and posts to load the scripts on. You can find the page ID in the browser address bar when editing a post.

Regards, Ally

Is there a way to export all form entires that are saved to WordPress to a spreadsheet type of document?

Hi

Yes, you can go to Forms – Tools – Export Entries to do this.

Regards, Ally

Hello, I am having problems with your forms (I have 3 licenses) and it seems that for some reason they conflict with WP Rocket. The problem encountered is the form crashes and prompts “An error has occurred, please refresh the page and try again”. This happens on all sites where I have qform active in combination with WP Rocket, the problem is that I collect customers from those modules. Detected both from mobile and fixed. You can help me, I would have liked to contact you privately but I don’t understand how to do it. Thank you

Hi

I sent you a reply to your private message about this. I’ll post part of my reply here in case it helps someone else with the same issue.

Quform is compatible with WP Rocket, there’s just one known issue with it, but I don’t think that applies in this case (you could try the solution there).

The error you mentioned is described on this page, it can be caused by many different things. Solution #3 will remove the error but not resolve the underlying issue (so you may still have issues with other features).

Regards, Ally

Hi. Looking to purchase. Does it support export of submission for reporting? Also does it support Google Triggers on form submissions?

Hi

Yes, you can export submissions to an Excel/CSV file at Forms – Tools – Export Entries.

You can send events on successful submissions using JavaScript, please see this page for more info.

Regards, Ally

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey