Forum Replies Created

Viewing 15 posts - 31 through 45 (of 45 total)
  • Author
    Posts
  • in reply to: Call PHP form #6536
    brabox
    Participant

    Ally,

    **Update**.

    It seems that i got it to work. (still going through some tests).

    All i did was to add Form Action before the Quform shortcode. Here is what i did below.

    <form action=”www.example.com/formcalculator.php” method=”post”>
    [iphorm id=”#_HERE” name=”IPHORM_NAME_HERE”]
    </form>

    Till now its working fine,

    Marco

    in reply to: Call PHP form #6534
    brabox
    Participant

    I have also tried these 2 options with no luck…(not sure if they would help)

    Redirecting with form data

    Send form data to another script

    The 2nd option keeps giving me a “An error occurred submitting the form” error. I tried the Debug.log but nothing regarding that showed up.

    • This reply was modified 11 years, 9 months ago by brabox.
    in reply to: Call PHP form #6533
    brabox
    Participant

    Hello Ally,

    Not sure i expressed correctly what i was trying to accomplish.

    I will try and explain again more detailed.

    I have created a form called Calc Eco EN, which i am using it as a shortcode [iphorm id=”19″ name=”Calc Eco EN”] into a wordpress page Eco Quote.

    I have set the Submit button in the form settings to Redirect to Page, where this page is a .PHP (with all my coding) that i have uploaded by FTP into my themes folder.

    I used all the Unique IDs from the quform in my PHP codes. (iphorm_19_1) etc..

    When i click submit, it redirects me to the PHP page fine, where it displays the code, but the values do not “get” the ones from the form, it just displays empty.

    Below is a small part of the begging of the PHP code where i used the Unique IDs from the form.


    $nameqty = $_POST ["iphorm_19_1"];
    $emailqty = $_POST ["iphorm_19_2"];
    $addressqty = $_POST ['iphorm_19_3'];
    $cityqty = $_POST ['iphorm_19_4'];

    The PHP was tested before with simple HTML, where the iphorm_19_1, 2, 3 etc.. were other values and it worked fine.

    please let me know if i have to add any other code into the PHP from to “retrieve” the values from the Qform. or, any other ideas.

    Thank you,
    Marco

    in reply to: Uppercase and Lowercase #5787
    brabox
    Participant

    Thank you Ally,

    Seems to work fine now.

    Just had to add a extra ) at the end of

    if (preg_match('/^iphorm_\d+?_\d+?$/', $key) && is_string($value) && !in_array($key, array('iphorm_3_240', 'iphorm_3_241'))) {

    Thank you!

    in reply to: centering elements #5679
    brabox
    Participant

    It seems not to work when i put (element) – > Settings -> Options layout -> inline.
    The option -> One option per line works fine.

    I was able to use margin-left:150px to try and center it but would like to know if there is a better way.

    thank you.

    in reply to: centering elements #5677
    brabox
    Participant

    Hello, i have tried the first code above but it does nothing. I also tried applying it directly in the element itself Advanced -> CSS -> Outer wrapper

    margin: 0 auto;
    text-align: center;

    but nothing.

    Not sure if this has anything to do but i am following trying to make https://www.quform.com/examples/select-radio-checkbox-using-images and center them.

    in reply to: Images and conditional logic #5149
    brabox
    Participant

    You can ignore this post. The link i found was exactly what i needed.

    Thank you,

    Marco

    in reply to: Required Field with Default Value #5003
    brabox
    Participant

    Hello Ally,

    Thank you for the response.

    I was able to make it work.

    I had to first take out the original Default Value, for the form.

    Thank you.

    Marco

    in reply to: Caps Lock #4353
    brabox
    Participant

    Ally,

    I would like to thank you for the time and support you gave me.

    It seems to be working perfectly now.

    =)

    in reply to: Caps Lock #4298
    brabox
    Participant

    It still sends in Caps Lock but nothing changed.

    User can still click send.

    I will leave a live test so you can verify at:
    https://www.brabox.com/en/ship-caixa-rapida/

    Click on (yes or no) i have an account? and then click Send at the bottom.

    On this next link i have a similar form (in Portuguese language) but i did not add the function to it.
    https://www.brabox.com/enviar-caixa-rapida/
    Here you can notice that upon clicking (Enviar) at the end, it will show the red messages.

    You can notice that only in that group the red (This field is required) doesn’t show.

    in reply to: Caps Lock #4253
    brabox
    Participant

    Ally,

    Thank you, the code worked.

    But, for some reason when all the required fields inside a group that is activated thru conditional logic no longer seems to “activate”, after erasing the Caps Lock code, they work fine.

    The red * still appears but for some reason it still lets the form to be sent.

    Any ideas?

    in reply to: Caps Lock #4158
    brabox
    Participant

    Hello Ally,

    I have tried the code but unfortunately it did not work for me. I changed the number 18 to a form id # i have and submitted the form but still all come in as lowercase.

    In regards to CAPTCHA, i deactivated it in the settings-general-honeypot captcha panel, and, i do not have any captcha fields in my forms.

    In order for the code to be “accepted” i needed to take out the last charcter in your code “>”.

    Please let me know if there is anything i did wrong.

    By the way, if I was to add this code to several forms, how would i add it?
    add_action(‘iphorm_pre_process_18′, ‘mytheme_form_uppercase’);

    in reply to: Caps Lock #4076
    brabox
    Participant

    Hello Ally,

    Thank you for your reply but unfortunately it did not work.

    I copied and pasted the code into my functions theme and had to take out the last “>” in your code to be accepted.

    I checked both, my email and the entries in the form but none was in caps lock. please let me know if there is something else i need to do to make this work.

    Thank you,
    Marco

    in reply to: Promo / Coupon Entry #3546
    brabox
    Participant

    Hello Ally,

    Thank you for the response.

    I was able to follow the instructions on the link you gave me but i couldn’t find how to ( return if true ). (iam not that familiar with PHP)

    This is the modified code i am using

    function brabox_coupon($valid, $value, $element)
    {
    if ($value != 'BraBox2013') { $element->addError('This coupon has expired or is incorrect'); $valid = false;
    }

    return $valid;
    }
    add_filter('iphorm_element_valid_iphorm_1_200', 'brabox_coupon', 10, 3);

    So in this case, if value is BraBox2013 (the correct coupon code) nothing displays but If it is not BraBox2013 then it displays the error message.

    If it is possible for you to help me, i would like to:
    Add more than 1 (valid) coupon code, and when they are (valid / true) a response displays back to client “valid coupon”.
    I will be using these in more than 1 form which have different unique element ID.

    Thank you.

    in reply to: More Columns #3472
    brabox
    Participant

    Thank you ally,

    Just to make sure i fully understod you, is this what youe mean?

    –group 1 — (settings to 2 columns)

    –group inner 1—(settings to 5 columns)
    (content here)
    –end group inner 1—

    —group inner 2—(settings to 5 columns)
    (content here)
    –end group inner2 —

    –end group 1 —

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