• Resolved carnagelp

    (@carnagelp)


    I came across your plugin after realizing it is what this page uses for its calculator: https://www.damnripped.com/pcos-weight-loss-guide/

    However upon trying to set up a similar calculator; I am:

    1) Unable to replicate the look, feel and effects of the form shown there.

    2) I can’t figure out how to pass on the information from one form to the other the way they have.

    Basically, what I’m trying to do is once the “PCOS CALCULATOR v4.0” calculates its results; the slider in “PCOS MACRO CALCULATOR” represents a value calculated based off one of the results in “PCOS CALCULATOR v4.0”

    In summary: How do I replicate and customize the calculators shown in the reference link above, exactly as is?

Viewing 15 replies - 16 through 30 (of 38 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @carnagelp

    I’m referring to a “Single Line Text” control.

    Please, try disabling the persistence from the forms. Untick the checkboxes: “Enable autocompletion” and “Enable the browser’s persistence (the data are stored locally on browser)” from the “Form Settings” tab in both websites (https://cff.dwbooster.com/images/documentation/form-settings-tab.png)

    Best regards.

    Thread Starter carnagelp

    (@carnagelp)

    Yes, it’s working now! Thank you so much.
    I’ll now configure the rest of the calculator. Hopefully I run into no more problems! Thanks again!

    PS: In that slider at the bottom of the form, how do I lock the slider and prevent the user from dragging it down? Currently, its locked from dragging up but can still be dragged down. Currently, I have set its predefined min and max to 20.

    Plugin Author codepeople

    (@codepeople)

    Hello @carnagelp

    Untick the range checkbox in the settings of the slider field, and enter the values into the min and max attributes, not the predefined min and predefined max.

    Best regards.

    Thread Starter carnagelp

    (@carnagelp)

    When I do that, the slider is freely movable on both ends.
    I need it to be fixed at that 20% value with the user not being able to slide it around

    Plugin Author codepeople

    (@codepeople)

    Hello @carnagelp

    I’ve checked your form again and you have not entered the values into the min and max attributes.

    Best regards.

    Thread Starter carnagelp

    (@carnagelp)

    I have: https://ibb.co/wyfSnZR

    If I set it as say 20,20; then the slider is stuck to the bottom like this:
    https://ibb.co/txnBvz3

    Plugin Author codepeople

    (@codepeople)

    Hello @carnagelp

    Pay attention to your own screenshot. You’ve entered the number 0 as the min attribute and 100 as the max. If you don’t want the user can move the slider from 20, you must enter 20 in both attributes.

    Best regards.

    Thread Starter carnagelp

    (@carnagelp)

    Like I mentioned above, when I set both attributes to 20, the slider is stuck at the bottom and doesn’t show up 20% of the way. Here’s the screenshot to that again: https://ibb.co/txnBvz3

    I have now set it again to 20,20 for you to check as well.

    Plugin Author codepeople

    (@codepeople)

    Hello @carnagelp

    Yes, that’s correct because the min and max are the same. Another alternative, if you want to disabled the slider by programming, is calling the piece of code:

    
    jQuery(".slider" ).slider( "disable" );
    

    Best regards.

    Thread Starter carnagelp

    (@carnagelp)

    So then how do I set the min,max for the slider to be stuck at 20% of length without movement?

    As for the alternative, where do I place that code?

    There is also another strange problem I’m encountering. Please see the screenshots below. They contain the visuals and the details of what’s wrong:
    1) https://ibb.co/zPqJV8L
    2) https://ibb.co/MfSzj0h

    Plugin Author codepeople

    (@codepeople)

    Hello @carnagelp

    Yes, that’s correct. If you check the values of the fields used in the equations, they are less than zero numbers.

    I’m sorry, but I cannot implement your project through the support service. If you need a custom coding service, you can contact me through my private website: Click Here

    Best regards.

    Thread Starter carnagelp

    (@carnagelp)

    I’m not looking for you to implement the project. I’m trying to do that myself.

    However, I keep facing random issues and bugs; with no clear answer on how to fix them anywhere on the plugin website or documentation.

    There’s also very little documentation on how to make specific customizations. The customization of CSS is well documented so I would be following the guidelines on that. But all other stuff I’ve been forced to ask you here because its not clear elsewhere.

    In some cases, the response is also too vague. For example, you say “If you check the values of the fields used in the equations, they are less than zero numbers.”
    – Why are they less than zero numbers when they should be blank until the field “Total calories” from form 1 actually gets a value which is then passed to form 2?
    – That -154 has no logical connection to it since there’s no equation put there. That field is only to take the value of form 1 and get it into form 2.
    – Even after the -154 changes to the actual calculated value; the field underneath still remains -7.7 instead of changing to its new calculation since its equation includes the field above. Isn’t that a bug?

    I hope you understand where I’m coming from. I’m honestly not trying to have you do the work for me. I’m just unable to find a solution to these problems anywhere and the only thing I can do is post in the support service to get some guidance.

    Plugin Author codepeople

    (@codepeople)

    Hello @carnagelp

    It is required to debug all your equations to detect the errors in your code. As you can understand, it is not possible to do this for every user’s project.

    For example, the equation of your “Carbs-20C” field is: (fieldname1*0.2)/4, fieldname1 is a calculated field whose value comes from the first form, specifically from the calculated field fieldname28 with the equation: prec((fieldname26-fieldname27),0)

    fieldname26 is a calculated field with the equation: prec((fieldname18*fieldname15),0)

    and fieldname27 is another calculated field with the equation: prec((fieldname26*fieldname14),0)

    fieldname18 is a calculated field with the equation: prec(((10*fieldname22) + (6.25*fieldname21) - (5*fieldname20) - 161),0)

    Note the values of dependent fields are zero when they are disabled.

    So, replacing the default values in the equations:

    fieldname18 = prec(((10*fieldname22) + (6.25*fieldname21) – (5*fieldname20) – 161),0) =
    prec(((10*0) + (6.25*0) – (5*0) – 161),0) = -161

    fieldname26 = prec((fieldname18*fieldname15),0) = prec((-161*1.2),0) = -193

    fieldname27 = prec((fieldname26*fieldname14),0) = prec((-193*0.2),0) = -39

    fieldname28 = prec((fieldname26-fieldname27),0) = prec((-193-(-39)),0) = -154

    Carbs-20C = (fieldname1*0.2)/4 = (-154*0.2)/4 = -7.7

    As you can see, the problem is not the plugin or bugging results. It is the way you have implemented the equations. It is simple mathematics.

    Best regards.

    Thread Starter carnagelp

    (@carnagelp)

    Ah yes, I see it now. Thanks for this.
    But shouldn’t that -7.7 get updated once the -154 changes to 1366 as seen in the screenshots?

    That alone would solve the problem

    Plugin Author codepeople

    (@codepeople)

    Hello @carnagelp

    Please, edit the piece of code into the “HTML Content” field as follows:

    
    <script>
    jQuery(document).on('change', '.field-a input', function(){
        jQuery('.field-b input').val(this.value).keyup();
    });
    </script>
    

    Best regards.

Viewing 15 replies - 16 through 30 (of 38 total)
  • The topic ‘Customization of Forms and passing information from one form to another’ is closed to new replies.