Code

Discussion on Quform - WordPress Form Builder

Discussion on Quform - WordPress Form Builder

4.75 (2,239 ratings) 4.75 stars
Cart 29,222 sales

ThemeCatcher supports this item

Supported

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

6033 comments found.

rokibhn

rokibhn Purchased

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

danyno45 Purchased

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

danyno45 Purchased

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

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

khoavo

khoavo Purchased

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

khoavo

khoavo Purchased

Sent! Thank you so much.

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

nivosh

nivosh Purchased

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

andyvb Purchased

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

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

gronzo

gronzo Purchased

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

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

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

kindghost

kindghost Purchased

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?

kindghost

kindghost Purchased

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

kindghost

kindghost Purchased

Great to know that,

Thanks for the effort,

Hi. All of the suddent today each time a file is being uploaded is throws “AJAX ERROR” has anything changed ? what could be the cause, plugin is updated to the latest version

Hi

It could be caused by many different things. If you are testing with a large file, try uploading a smaller one. If it works with a smaller file you may need to increase the file upload limits on the server.

Could you try checking for plugin/theme conflicts using this method.

Try it in an incognito/private window to rule out any issues as a logged in user or with cookies.

If it’s still not working please post a link to the form page or send the link privately through the contact form on our CodeCanyon profile page.

Regards, Ally

by
by
by
by
by
by