• Resolved loppisinorge

    (@loppisinorge)


    Hi,

    Is it possible to have “Two calculators in one”?

    Right now i have a made a calculator that is designed to calculator the GPA for College students. But i want to make one for High Schools students as well.

    Instead of making two calculated forms on one page.
    Is it possible to just install button that people can click on and the calculator switches from “College” to “High School”?

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

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @loppisinorge

    Assuming you have inserted a DIV field with every field corresponding to “College” inside. I’ll call it fieldname123.

    And another DIV field with every “High School” field. I’ll call it fieldname321.

    And finally, you want to switch them by pressing a button field in the form.

    Enter the class name ignorefield through the “Add CSS Layout Keywords” attribute in the fieldname321 field

    Insert a button in the field can enter the following piece of code as its on-click event:

    
    if(getField('fieldname123').jQueryRef().is(':hidden')){
    
    IGNOREFIELD('fieldname321');
    ACTIVATEFIELD('fieldname123');
    
    }else{
    
    IGNOREFIELD('fieldname123');
    ACTIVATEFIELD('fieldname321');
    
    }
    

    Best regards.

Viewing 1 replies (of 1 total)

The topic ‘Two calculators in one’ is closed to new replies.