Support » Plugin: Calculated Fields Form » Conditional formating in Suffix field

  • Resolved dodjob

    (@dodjob)


    Hi there,
    I would like to add a conditional formating to the suffix field.
    In my case I want to get a difference between “month” and “months” if the result of the showed field is more or less that the value “1”
    Is it possible?
    I tried to include the following formula in the suffix field:
    (function(){
    if(fieldname46 < 1){
    return day;
    }else return days;
    }
    })()
    But the formula is just shown in the result of the calculated fied ^^
    Any hints?
    Regards,
    Hadrien

    http://wordpress.org/extend/plugins/calculated-fields-form/

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    My recommendation is to use as suffix the text day(s), it is correct for one day or multiple days.

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Conditional formating in Suffix field’ is closed to new replies.