WordPress.org

Forums

Calculated Fields Form
[resolved] Conditional formating in Suffix field (2 posts)

  1. dodjob
    Member
    Posted 2 years ago #

    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/

  2. codepeople
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

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

    Best regards.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Calculated Fields Form
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic