• Resolved artinkprint

    (@artinkprint)


    Hello @codepeople I have one more question…

    Is it possible to display cff fields side by side in Summary?

    For example, I am wanting to display the numerical results for image size plus borders, as a total paper size in one line of text. I don’t want the numerical values displayed in boxes side by side… but as a line of text:
    paper size = 16″ x 20″ (for example).

    I have tried to achieve this by using summary field.
    Thanks!!!

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

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

    (@codepeople)

    Hello @artinkprint

    You always can use the calculate field as auxiliary, but display the result into another field.

    I will try to describe the process with an example.

    Assuming there are two fields in the form, fieldname1 and fieldname2, and you want to display the result as follows: value of field one X value of second field

    – Insert a “HTML Content” field with a div tag as its content, where would be displayed the result:

    <div class="result-here"></div>

    – And then, insert a calculated field to be used as auxiliary, that you can configure as hidden simply ticking a checkbox in its settings, with the following equation:

    
    (function(){
    jQuery('.result-here').html(fieldname1+' X '+fieldname2);
    })()
    

    – Or you can avoid to use the “HTML Content” field, and display the result directly into the calculated field, with the following equation:

    
    (function(){
    return fieldname1+' X '+fieldname2;
    })()
    

    and that’s all.
    Best regards.

    Thread Starter artinkprint

    (@artinkprint)

    Amazing! Thanks again ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Displaying results in summary in a single line.’ is closed to new replies.