• Resolved eberkland

    (@eberkland)


    I have two div fields that are worksheets and contain many fields to generate a price quote. The two fields must remain visible when the form loads; call them fieldname1, fieldname2

    I want to create two buttons

    Button 1, called Presentation that will:

    1. Hide fieldname1 and fieldname2
    2. Perform a calculation from an auxiliary field (fieldname5)
    3. Show fieldname3
    4. Hide the Presentation button when fieldname3 is opened

    Another button in the fieldname3 div (call it Worksheet) will do the following:

    1. Show fieldname1, fieldname2
    2. Hide fieldname3
    3. Hide Presentation Button

    I did not see this topic in the forum, I apologize if I missed it.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author CodePeople2

    (@codepeople2)

    Hello @eberkland

    If you want to show or hide fields by pressing buttons in the form, you should only call the SHOWFIELD or HIDEFIELD operations from their onclick events.

    E.g.

    SHOWFIELD('fieldname1', this.form);
    HIDEFIELD('fieldname1', this.form);

    Learn more about the operations included in the “Managing Fields Operations” module by reading the following section in the plugin documentation:

    https://cff.dwbooster.com/documentation#managing-fields-module

    If you need a custom coding service to implement your project or part of your form, you can contact us directly through the plugin website. Contact Us

    Best regards.

    Thread Starter eberkland

    (@eberkland)

    Thank you. I already looked through the documentation.

    I am wondering how to run a calculation in aux field and hide the button after OnClick

    Plugin Author CodePeople2

    (@codepeople2)

    Hello @eberkland

    You need only to call the HIDEFIELD with the button field’s name from its onclick event.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.