• Resolved andreiikustov

    (@andreiikustov)


    Good afternoon, I can not find an error. when I choose the value in fieldname1 (dropdown) for different values, different “Checkboxes”, and one “Calculated Field” for all. I not see resoult in summary field.

    (function(){IF(fieldname1 = 600) return fieldname2;
    IF(fieldname1 = 680) return fieldname3;})()

    Thank you in advance for your cooperation

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter andreiikustov

    (@andreiikustov)

    It turned out, but there were commas at the beginning of 2,3,4 lines

    Plugin Author codepeople

    (@codepeople)

    Hello,

    A different solution will require modify the plugin’s code. Please, follow the steps below:

    1. Open the “/wp-content/plugins/calculated-fields-form/inc/cpcff_auxiliary.inc.php” file with the text editor of your choice.

    2. Go to the piece of code:

    
    $value = ( !empty( $value ) || is_numeric( $value ) && $value == 0 ) ? ( ( is_array( $value ) ) ? implode( ", ", $value ) : $value ) : '';
    

    and edit it as follows:

    
    $value = ( !empty( $value ) || is_numeric( $value ) && $value == 0 ) ? ( ( is_array( $value ) ) ? implode( "<br /> ", $value ) : $value ) : '';
    

    Best regards.

    Thread Starter andreiikustov

    (@andreiikustov)

    Everything works, thank you very much

    Thread Starter andreiikustov

    (@andreiikustov)

    how to insert empty lines between fields, what would stretch the form in height?

    Plugin Author codepeople

    (@codepeople)

    Hello @andreiikustov,

    The styles defined in the theme active in your website affects too the forms. An alternative to increase the space between fields would be enter the style definition below into the “Customize Form Design” attribute in the “Form Settings” tab (https://cff.dwbooster.com/images/documentation/form-settings-tab.png)

    
    #fbuilder .fields{margin-bottom: 20px !important;}
    

    and that’s all.
    Best regards.

    Thread Starter andreiikustov

    (@andreiikustov)

    And if I need an indent between the fields <% fieldnameX%> and <% fieldnameY%>? And only between them.

    Plugin Author codepeople

    (@codepeople)

    Hello @andreiikustov,

    If you want apply the styles only to some specific fields, you simply should assign a custom class names to these fields (the class names are assigned to the fields through the attribute: “Add CSS Layout Keywords” in their properties), for example: my-class

    And then, enter the class definition through the “Customize Form Design” attribute:

    
    #fbuilder .my-class{margin-bottom: 20px !important;}
    

    Best regards.

    Thread Starter andreiikustov

    (@andreiikustov)

    Thank you

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Output of the sum’ is closed to new replies.