• 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 8 replies - 31 through 38 (of 38 total)
  • Thread Starter carnagelp

    (@carnagelp)

    It’s working now! Thank you!

    Btw, where do I place this code for the slider?:

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

    Plugin Author codepeople

    (@codepeople)

    Hello @carnagelp

    You can enter that code as part of an equation, or you can insert an “HTML Content” field in the form to run the code after the form is generated:

    <script>
    fbuilderjQuery(document).one('showHideDepEvent', function(){
    jQuery(".slider" ).slider( "disable" );
    });
    </script>

    Best regards.

    Thread Starter carnagelp

    (@carnagelp)

    That worked! Thank you!

    If I wanted to pass a value from a text field into the field caption of a slider, how do I do that?

    Ref: https://ibb.co/GpW0p8L

    Plugin Author codepeople

    (@codepeople)

    Hello @carnagelp

    In this case, I recommend you to enter a tag as part of the slider caption: {0} <span class="dynamic-text-here"></span> grams

    And then, you can use a piece of code similar to the following one as part of an equation in the main form:

    jQuery('.dynamic-text-here').html(fieldname4);

    Best regards.

    Thread Starter carnagelp

    (@carnagelp)

    So I created a HTML field and put in:

    <script>
    jQuery('.dynamic-text-here').html(fieldname4); <script>

    in it.

    The result is that the {0} <span class="dynamic-text-here"></span> grams prints as “{0%} grams”

    What am I doing wrong?

    Plugin Author codepeople

    (@codepeople)

    Hello @carnagelp 
    
    As I said previously, the code must be part of an equation in the main form. The equations are entered in the settings of calculated fields and not in the "HTML Content" fields.
    
    Best regards.
    Thread Starter carnagelp

    (@carnagelp)

    Ah, yes. My bad. It’s working now. Thank you for being so helpful and patient with me. I really appreciate it

    Thread Starter carnagelp

    (@carnagelp)

    That worked! You’re awesome

    EDIT: Oops. I thought I forgot to respond to this so posted again. My bad

    • This reply was modified 3 years, 11 months ago by carnagelp.
Viewing 8 replies - 31 through 38 (of 38 total)
  • The topic ‘Customization of Forms and passing information from one form to another’ is closed to new replies.