Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter zachostaf

    (@zachostaf)

    Hello Adam,
    Thanks for your reply! I already managed to return custom error message by using these hooks:
    forminator_custom_form_submit_response
    forminator_custom_form_ajax_submit_response

    The problem is that the submission is not stopping so the data are saved even I return the $respone array like below and the custom error message is appeared on the frontend. Is there any way to interrupt posted data to be saved via using the above hooks?

    
    $response["success"]= false;
    $response["errors"]=array(); 
    $response["message"]="Custom error message";
    

    Otherwise, please advise me for better practice according to my previous answer on Patrick where I explained the programming flow.

    Best Regards!

    • This reply was modified 3 years, 9 months ago by zachostaf.
    Thread Starter zachostaf

    (@zachostaf)

    Hi Patrick,
    thanks for your answer. I already knew how to set these fields from plugin’s settings. I jsut wanted to ovveride them accordingly to some custom checks.

    As soon you have some programming answers about any of the above questions please let me know.

    In order to be more specific about my intention I will share the flow I have in mind:
    1) Before save entry, make some custom checks and return custom error messages (if is needed or let validation begins)
    2)Make some extra custom checks on submit and return custom validation errors (already answered)
    3)After succsfull save entry redirect to dynamic url

    For your kind convenience it would be be very helpfull for me If you can send me any realated documentation about all of these hooks.

    Thanks for your valuable help till now!

    Best Regards,
    Zacharias

    Thread Starter zachostaf

    (@zachostaf)

    I also would like to ask If “forminator_custom_form_submit_response” hook can help in my situation, because I already tried to use it for redirection after successful form submission ($response[‘url’] = “link…”).

    Finally, can I stop the form submission on “forminator_custom_form_before_save_entry” with a custom error?

    Thank you very much for your help!

    Best Regards

    Thread Starter zachostaf

    (@zachostaf)

    Thank you very much for the immediate reply!!
    I am sorry for the delay but I tried also some other hooks I found for achieving my purposes. By this function I can control the fields’ errors but as I can see I cannot change the top general error message of the form “Error: Your form is not valid, please fix the errors!”. Is there any way to change it according to my needs?

    Best Ragards,
    Tafralis Zacharias

    Forum: Plugins
    In reply to: [Boo Recipes] Translate
    Thread Starter zachostaf

    (@zachostaf)

    Hello again!

    I am really sorry for the delay. I totally forgot to upload the translation files.

    I created the files as I promised and you can download them from here:
    https://drive.google.com/file/d/1hl3Jz75Kn4mKXx6OXy9h9Lk_sg9v8z1u/view?usp=sharing

    Best regards!

    Forum: Plugins
    In reply to: [Boo Recipes] Translate
    Thread Starter zachostaf

    (@zachostaf)

    @boospot

    Thanks a lot!
    It plays perfectly!
    I will share with you, in this topic, the translation files within the next week if you want to include them in a future version.

    Forum: Plugins
    In reply to: [Boo Recipes] Translate
    Thread Starter zachostaf

    (@zachostaf)

    @boospot
    You can download them from here:
    https://drive.google.com/open?id=18jfKhYIF8viyDk2a6ohxtWofucgNXF8W

    Once you will fix it, I will complete the translation and I can send you the new files to include them in a future version of the plugin if you wish to.

    Best Regards

    Forum: Plugins
    In reply to: [Boo Recipes] Translate
    Thread Starter zachostaf

    (@zachostaf)

    @boospot
    Hello again,
    sorry for the delayed answer!

    I updated the plugin and I have tried, following your guidance to translate the plugin (using boo-recipes-el_EL.mo and boo-recipes-el_EL.po files) but it didn’t work.

    I have also tried to install wpml for setting Greek language from there but it also didn’t work.

    Finally, I tried again using Loco Translate but nothing changed.

    Do you want me, to send you my translation files to check it? I have some strings translated, such as Yields, Ingredints and Instrunctions from where you can understand whenever the plugin reacts as it has to.

    As it concerns the German translation, it works fine when i am changing the default wordpress language from Greek to German. I really cannot understand what is happening.

    Best Regards

Viewing 8 replies - 1 through 8 (of 8 total)