Forum Replies Created

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • in reply to: How to save a form forlater #35837
    adaka
    Participant

    Thanks Ally,

    I now have the name of the file but when I do next it tells me that the field is mandatory, what can I do?

    Attachments:
    You must be logged in to view attached files.
    in reply to: How to save a form forlater #35832
    adaka
    Participant

    Hi,

    Thank you for your reply, however I don’t save in the cookies as in the documentation but in the database in a personal encrypted table.
    However, I have another problem, much more serious at the moment, I want to display the form I’ve already submitted but the information isn’t coming back correctly, in fact the classic fields are coming back but there are problems with the files and checkboxes, can you help me? Here’s a code snippet:

    add_action(‘quform_pre_display_’ . $form_id, function (Quform_Form $form) {
    //We get last send value
    global $currentForm;
    if ($currentForm && is_array($currentForm)) {
    foreach ($currentForm as $res) {
    $form->setValue(
    “quform_” . $res->form_id . “_” . $res->element_id,
    is_serialized($res->value) ? unserialize(quform_set_value_from_storage($res->value)) : quform_set_value_from_storage($res->value)
    );
    if ($form->getElement(“quform_” . $res->form_id . “_” . $res->element_id) instanceof Quform_Element_File) {
    $values = [];
    var_dump(unserialize(quform_set_value_from_storage($res->value)));
    foreach (unserialize(quform_set_value_from_storage($res->value)) as $key => $arr) {
    foreach ($arr as $k => $a) {
    $values[$k][] = $a;
    }
    $values[“error”][$key] = 0;
    }
    $_FILES[“quform_” . $res->form_id . “_” . $res->element_id] = $values;
    }
    }
    } else {
    global $wpdb;
    $form_id = get_field(‘form_used_id’, ‘option’) ? get_field(‘form_used_id’, ‘option’) : 1;
    $user_id = get_current_user_id(); // Vous pouvez obtenir l’ID de l’utilisateur enregistré

    // Vérifier si une ligne avec le même user_id existe déjà
    $existing_row = $wpdb->get_row(“SELECT * FROM ” .$wpdb->prefix .”users_save_registration_step WHERE user_id = ” .$user_id .” AND form_id = ” .$form_id);

    if ($existing_row) {
    $existing_row->form_data = quform_set_value_from_storage($existing_row->form_data);
    parse_str($existing_row->form_data, $values);
    $form->setValues($values);

    }
    }
    });

    Attachments:
    You must be logged in to view attached files.
    in reply to: Huge Qu-Form error ajax #35786
    adaka
    Participant

    Hi Ally,

    Yeah, that was it, it works fine now. Thanks a lot for your help !

    Regards,
    Sandra

    in reply to: Huge Qu-Form error ajax #35782
    adaka
    Participant

    Hi Ally,

    We don’t see any error nor in the PHP error log neither in the web server error log.

    Regards,
    Sandra

    in reply to: Huge Qu-Form error ajax #35779
    adaka
    Participant

    Hi Ally,

    We added the final fields to the form and it turns out that there is an Ajax error again. The problem seems to come from the high number of fields again this time.

    Could you please take a look at the problem ?

    Regards,
    Sandra

    in reply to: Huge Qu-Form error ajax #35769
    adaka
    Participant

    Hi Ally,

    We were able to investigate and found where the error came from. You were right, it was an error in this file.

    Thanks for your help !

    Regards,
    Sandra

    in reply to: Huge Qu-Form error ajax #35759
    adaka
    Participant

    Hi Ally,

    I replied to your e-mail with the username and password of the browser authentication.

    Let me know if you meet any problem accessing the project.

    Regards,
    Sandra

    in reply to: Huge Qu-Form error ajax #35756
    adaka
    Participant

    Hi Ally,

    I tried to duplicate the form to create a much smaller copy, and the Ajax error is still occurring. This time, the error does not seem to come from the high number of fields.

    Waiting to hear from you.

    Regards,
    Sandra

    in reply to: Huge Qu-Form error ajax #35755
    adaka
    Participant

    Hi Ally,

    I have just created and sent the username, password and project url via the feedback form.

    How long do you need this account to be available ?

    Regards,
    Sandra

    in reply to: Huge Qu-Form error ajax #35753
    adaka
    Participant

    Hi Ally,

    I am Sandra, having just taken over from Anthony. We updated the latest version and it seemed to solve the problem at first glance. I now succeed to fill the form until the end, however when I try to submit it, a message “There was a problem, Ajax error” appears again. It is impossible to create new entries by submitting the form.
    I can see some new entries in the backoffice corresponding to the times I tried to submit the form, but all of them are empty.

    Any ideas what the problem might be ? I am eagerly wainting for your feedback.

    Regards
    Sandra

    in reply to: Huge Qu-Form error ajax #35688
    adaka
    Participant

    Hello Ally,

    So it s been more than 2 weeks that we are waiting for your solutions.

    Do you finally find a solution for the form ? Are the backoffice list form and single form dislay ok ?

    We want to know more about the next steps too. How we will do next ? Will you give us the code to inject or there will have an update of the plugin ?

    Please give some news.

    Regards,
    Anthony

    in reply to: Huge Qu-Form error ajax #35672
    adaka
    Participant

    Hello Ally,

    I m glade to have positive news from you. Thanks for getting back.
    It’s reassuring to know that a solution has been found.

    We, i, can’t wait to test these changes.

    Regards
    Anthony

    in reply to: Huge Qu-Form error ajax #35649
    adaka
    Participant

    Ok Ally, thanks for your feedback.
    I hope you find the solution quickly and easily.

    I will stay connected next week to find out if you have made good progress on the subject.
    Good luck for your job.

    Regards
    Anthony

    in reply to: Huge Qu-Form error ajax #35644
    adaka
    Participant

    Hello, it’s been a week since you answered me on the problem.
    Please let me know if there is any news on a potential solution.
    I stay connected every day to get news.

    As I told you before, our company needed a functional plugin supporting a large capacity of fields for forms with conditional logics and that’s why we paid.

    Our project is due mid-July and is still not functional, our team is worried and wonders about the integration of your plugin on our site.

    Hoping to get an answer quickly.

    Regards
    Anthony, Adaka dev

    in reply to: Huge Qu-Form error ajax #35634
    adaka
    Participant

    Hello, I hope you are making good progress on the problem and that the solution has been or will be found in the next few days.

    I eagerly await your feedback on the issue.

    Regards
    adaka

Viewing 15 posts - 1 through 15 (of 17 total)
Be inspired. © 2025 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy