Support » Plugin: Calculated Fields Form » Move Captcha field

  • Resolved Bakhshi

    (@bakhshi)


    Hello

    Can I Move the Captcha field?

    For example:

    1- fieldname1
    2- Captcha field
    3- fieldname2
    4- fieldname3

    • This topic was modified 1 month, 3 weeks ago by Bakhshi.
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @bakhshi

    Yes, of course, include a “HTML Content” field in the form with the following piece of code as its content.

    
    <script>
    fbuilderjQuery(document).one('showHideDepEvent', function(){
    fbuilderjQuery('[class*="fieldname1_"]').after(fbuilderjQuery('.captcha'));
    });
    </script>
    

    and that’s all.
    Best regards.

    I did it
    But Field didn’t move!

    Please see:

    https://motorkhoneh.ir/%D8%AA%D8%B3%D8%AA/

    Sorry
    I understood
    I hadn’t changed the name of the field.

    thanks

    • This reply was modified 1 month, 3 weeks ago by Bakhshi.

    How to make this field required?

    Plugin Author codepeople

    (@codepeople)

    Hello @bakhshi

    To make a field required, you only should tick the “required” checkbox in its settings.

    Best regards.

    My question is about your second answer on this page:

    ////Yes, of course, include a “HTML Content” field in the form with the following piece of code as its content.
    <script>
    fbuilderjQuery(document).one(‘showHideDepEvent’, function(){
    fbuilderjQuery(‘[class*=”fieldname1_”]’).after(fbuilderjQuery(‘.captcha’));
    });
    </script>/////

    HTML field has no required checkbox!!!

    Plugin Author codepeople

    (@codepeople)

    Hello @bakhshi

    The “required” attribute has no sense in the “HTML Content” fields. The problem in your website, is the way the resources are being loaded, when the code you are referring is being executed the fbuilderjQuery does not exists yet. Please, edit the code as follows:

    
    <script>
    setTimeout(function(){fbuilderjQuery('[class*="fieldname1_"]').after(fbuilderjQuery('.captcha'));}, 2500);
    </script>
    

    Best regards.

    I replaced the code but it didn’t work!
    When I enter the value incorrectly it does not say ‘Incorrect captcha code. Please try again.’
    Please see:
    link

    • This reply was modified 1 month, 3 weeks ago by Bakhshi.
    Plugin Author codepeople

    (@codepeople)

    Hello @bakhshi

    I’ve visited your web page and it is working fine, the captcha is located now in the first page, after the fieldname6. Please, look the screenshot:

    Best regards.

    Yes of course the field has been moved but when I click on the next button the error alerts are not displayed.

    when field is blank click the Next button
    and Enter wrong value in the field
    Required alert and wrong value will not be displayed

    • This reply was modified 1 month, 3 weeks ago by Bakhshi.
    • This reply was modified 1 month, 3 weeks ago by Bakhshi.
    • This reply was modified 1 month, 3 weeks ago by Bakhshi.
    • This reply was modified 1 month, 3 weeks ago by Bakhshi.
    Plugin Author codepeople

    (@codepeople)

    Hello @bakhshi

    The validations of captcha occurs only when the form are submitted, because the captcha are validated against the value stored in the server side. If you need a different behavior, you should request a custom coding service from our private website: Customization

    Best regards.

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.