• Resolved hheyhey568

    (@hheyhey568)


    Hello,
    Can we add table same way as MS Excel ?

    For example : I have 3 input field and 3 calculated fields.

    I want to tabulate the calculated fields varying 1 input fields as follows in a table.

    Fieldname1=100 calculated Field1 | calculated Field2 | calculated Field3
    Fieldname1=200 calculated Field1 | calculated Field2 | calculated Field3
    Fieldname1=300 calculated Field1 | calculated Field2 | calculated Field3

    regards,

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @hheyhey568

    The plugin includes multiple mechanisms to distribute the fields in columns: using the container fields (Div or fieldset), or assigning to the fields the predefined class names distributed with the plugin.

    Please, watch the following videos:

    https://wordpress.dwbooster.com/customdownloads/videos/video_columns_container.mp4

    https://wordpress.dwbooster.com/customdownloads/videos/video_columns_class.mp4

    and read the following post in the plugin’s blog:

    https://cff.dwbooster.com/blog/2019/01/06/columns

    Best regards.

    Thread Starter hheyhey568

    (@hheyhey568)

    Thanks. Actually the question is little different.

    For example: I have a calculation as follows:

    var a , b , c , d , e,f;

    a=fieldname1;
    b=fieldname2;
    c=fieldname3;
    d=fieldname4;

    e=a+b+c+d;
    f=a-b+c+e;

    with these I will get result in form of e & f.

    Now what I want is : I want that we prepare a result table , where value of “a” will be changed like a+1 , a+2 , a+3 and whole calculation for each value of “a” will be done within this calculated field and all the results of e & f are tabulated in the output table. in brief repeat the calculation with different value of “a” and tabulate result.

    • This reply was modified 4 years, 8 months ago by hheyhey568.
    Plugin Author codepeople

    (@codepeople)

    Hello @hheyhey568

    I don’t understand the difference. It is just the same situation.

    There is an input box for the field A, and into the same row, using any of methods describes in the previous entry, include other three calculated fields for the fields: A+1, A+2, and A+3

    And below them another row for the E fields. A calculated field that uses the field A, a second calculated field that uses the A+1 field, a third calculated field that uses the A+2 field, and a fourth calculated field to use the A+3 field

    And finally, another row with four columns for the fields F, similar to the previous row with the E fields.

    Best regards.

    Thread Starter hheyhey568

    (@hheyhey568)

    thanks , the difference is : we need to write a code for it. I thought there is different way with some kind of loop to do the repeated calculation using different input value rather than writing a code for it.

    Plugin Author codepeople

    (@codepeople)

    Hello @hheyhey568

    To generate the table you don’t need coding, you should insert DIV fields, configure the number of columns through their settings, and finally, drag and drop the other fields into them.

    Best regards.

    Thread Starter hheyhey568

    (@hheyhey568)

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Table in the form’ is closed to new replies.