• Resolved fatih71

    (@fatih71)


    Hello,

    I do not want to show cff-summary item in summary field when there is no input in fieldname.
    How to realise this?

    Thank you,
    Fatih

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

    (@codepeople)

    Hi @fatih71,

    In the current version of the plugin, all fields included in the summary are displayed, no matter if the user has entered a value or not, only are excluded the the dependent fields that are inactive.

    If you want hide the fields without a value assigned would be needed customize your copy of the plugin, specifically the “/wp-content/plugins/calculated-fields-form/js/fields-public/16_fbuilder.fsummary.js” file.

    – Open the file with the text editor of your choice.
    – Go to the piece of code:

    if( e.hasClass( 'ignore' ) )

    and modify it as follows:

    if( e.hasClass( 'ignore' ) || /^\s*$/.test(tt.find( '.cff-summary-value' ).html()))

    – Now, go to the settings page of the plugin, through the menu option: “Settings/Calculated Fields Form”, untick the checkbox: “Activate Javascript Cache”, and press the “Update” button.

    If you need additional help customizing the plugin’s code, you should hire a custom coding service. Please, visit my website:

    https://cff.dwbooster.com/customization

    Best regards.

    Thread Starter fatih71

    (@fatih71)

    Thank you very much!!!, it does work.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘calculated fields form summary field display none when there is no input’ is closed to new replies.