• Resolved Damn!

    (@greedymind)


    Hello,

    I’m facing a peculiar issue. When Unit System field is Metric, the value of the Weight field from Form 1 is not showing up in the Current Weight field in Form 2 . However the value shows up when the Unit System field is Imperial. The coding is done similar for both scenarios. Not sure why it’s not showing up during the first scenario. Please help.

    ref page: https://damnripped.com/test/

    Thanks.

    • This topic was modified 7 years, 3 months ago by Damn!.
Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @greedymind,

    I’m sorry, but debugging your project’s implementation is not covered by the support service. If you need additional support implementing your project, I can offer you a custom coding service from my private website:

    https://cff.dwbooster.com/customization

    Best regards.

    Thread Starter Damn!

    (@greedymind)

    Hello,

    For some reason enabling the “browser’s persistence” option broke my code. Disabling it fixed the issue.

    Thanks.

    Plugin Author codepeople

    (@codepeople)

    Hello,

    Thank you very much for letting me know, however, the issue may be caused by the implementation of the integration of both forms. I’ll test a similar integration in my local copy of the plugin.

    Best regards.

    Hi, sorry to write here but I’m not getting replies to my messages via the ticket system, kindly refer to ticket #970047 with urgency. Many thanks

    Plugin Author codepeople

    (@codepeople)

    Hello,

    Your messages at ticket #970047 have been received and we are already working on that.

    Best regards.

    Plugin Author codepeople

    (@codepeople)

    Hello @greedymind,

    I’ve checked your forms, and the issue is caused by the way they were implemented. You are emulating the dependencies by yourself between fields in different forms, so, if the persistence is enabled, after form is displayed their values are populated with the information stored in the browser, but you are not considering this situation in your implementation.

    Furthermore, you have not created an onchange event for the .my-external-kg-field input selector.

    Best regards.

    Thread Starter Damn!

    (@greedymind)

    Hello,

    Yes, I didn’t consider the how the persistence option would affect my form as I updated CFF after a really long time. And Weird as it may seem, I’m not sure how this piece of disappeared suddenly.

    <script>
    jQuery(document).on('change', '.my-external-kg-field input', function(){
    jQuery('.my-auxillary-kg-field input').val(jQuery(this).val()).change();
    });
    </script>

    But doesn’t matter I’ve added it now. Thanks for looking into this and your time.

    • This reply was modified 7 years, 3 months ago by Damn!.
    Thread Starter Damn!

    (@greedymind)

    One more thing, I’d like to know how html,js and css minification affect the forms? I tried wp fastest cache and cloudflare minification and the forms didn’t perform well I must say. I don’t know if its because of my messy implementation, could be it for all I know. What are your thoughts on this? Have you tested this?

    Plugin Author codepeople

    (@codepeople)

    Hello @greedymind,

    We’ve multiple users whose websites have installed different plugins for teh websites’ optimization and cache management. The issue with them have been related (in most cases) with the settings of the optimization plugins. For example, some of them change the order that files are loaded, and when our plugin requires these files they have not been loaded yet. Each optimization plugin has its particularities.

    Best regards.

    Thread Starter Damn!

    (@greedymind)

    Ok thanks.

    Thread Starter Damn!

    (@greedymind)

    Hello again,

    I just tested my forms in AMP pages and the dependencies doesn’t seem to work. Now, I know <script> tags are prohibited in AMP pages unless the type is application/ld+json. Is there any workaround to fix this?

    Ref page: https://damnripped.com/test-post/amp/

    • This reply was modified 7 years, 3 months ago by Damn!.
    Plugin Author codepeople

    (@codepeople)

    Hello @greedymind,

    I’ve tested your form and the dependencies are working fine, please, look the screenshots in the following links:

    https://wordpress.dwbooster.com/customdownloads/2017/12/21/Screenshot_20171221-114931.png
    https://wordpress.dwbooster.com/customdownloads/2017/12/21/Screenshot_20171221-114940.png

    But, as each form is loaded in its own <amp-iframe> tag, won’t be possible accessing to the fields in one form from the second one, because they are different contexts, unfortunately we don’t have a solution to your case because the only way for running scripts that don’t belong to the AMP projects is using the amp-iframe tags.

    Best regards.

    Thread Starter Damn!

    (@greedymind)

    Thank you for letting me know that. One more question, How to create another Form Header inside a form.

    Thanks.

    Plugin Author codepeople

    (@codepeople)

    Hello,

    You can insert a “HTML Content” field at the end of the form with the corresponding tags directly as its content:

    <div class="fform" id="field"><h2>Goal Calculator V2.0</h2><span>Know the duration, no. of days, deficit calories and the target date to reach your goal weight.</span></div>

    Best regards.

    Thread Starter Damn!

    (@greedymind)

    Just what I needed. Thanks.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Value not showing up in Form 2’ is closed to new replies.