• Resolved hgvprint

    (@hgvprint)


    Hi, Regard

    I need help to create a unit converter, to change the unit measurement based on user input.

    Im following this tutorial, [ https://www.youtube.com/watch?v=ztnTq-weCiM ] but i got stuck on how he create the button for the measurement unit…

    What basic module/option other than button that i can use to create the function ?

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author moomooagency

    (@moomooagency)

    Hi,

    You need a pro version to configure units conversion functionality.

    Thread Starter hgvprint

    (@hgvprint)

    Hi, already did it but the unit conversion for inch convert to ft didnt give the correct ouput.
    For example, 100 inch supposedly i got 8.33 ft but it give wrong answer.

    Plugin Author moomooagency

    (@moomooagency)

    Sorry, I don’t understand what exactly and where gives the wrong result. Please, clarify, explain it in the details.

    Thread Starter hgvprint

    (@hgvprint)

    I try to create unit conversion using radio button, dynamic notice [ every input(number) should be change to ft(feet) ] literally following the video

    input(number)-> radio button( cm, inch, m, ft)-> output(ft)

    example in dynamic notice:
    Height : data.uni_cpo_height_test data.uni_cpo_unit ( data.uni_nov_cpo_change_height_to_feet ft)

    uni_cpo_height_test -> any number for height
    uni_cpo_unit -> radio button to choose the unit of the input (cm, m, inch, ft)
    uni_nov_cpo_change_height_to_feet -> a NOV i create to convert unit to ft

    All works fine except when i choose uni_cpo_unit(inch)
    It should be 100inch = 8.33 ft but i got 3.28ft instead, how do i fix this ?

    Plugin Author moomooagency

    (@moomooagency)

    You set a wrong slug for ‘inches’ suboption: https://moomoo-agency.gitbook.io/uni-cpo-4-documentation/usage/panel/dimensions It must be ‘in’.

    Thread Starter hgvprint

    (@hgvprint)

    Ok thanks you very much ^^ its working fine

    Thread Starter hgvprint

    (@hgvprint)

    Hi sorry, may i know how to change a long decimal into 2 decimal places ?
    I try to do like this but it didnt work..

    (# var Height=data.uni_nov_cpo_change_height_to_feet;
    if (Height){#}
    (Height.toFixed(2) ft {#}#)

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Uni CPO | How to create unit converter, ex: inch to feet, feet to inch ? ?’ is closed to new replies.