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

    (@codepeople)

    Hi,

    Yes of course. For example, if the fields are: fieldname1 and fieldname2, the equation would be:

    (function(){
    retrun “your range is between”+fieldname1+” and “+fieldname2;
    })()

    Best regards.

    Thread Starter fergieferg

    (@fergieferg)

    That worked! Thank you so much for the super quick reply/solution.

    I have another issue (more than happy to start a new thread). One of the prerequisites for this range to display is for age to be selected. Yet a range is displaying even before the age is determined. How do I set it to where the range only displays after age is chosen?

    To clarify, age is the first field and I don’t want any other data to populate until age is set by the user.

    Plugin Author codepeople

    (@codepeople)

    Hi,

    By default the value of fields in the equation are considered as zero if they are empties, so, if the age is the fieldname1, you simply should use a conditional statement in the equation as follows:

    (function(){
    if( fieldname1 )
    {
    return "your range is between"+fieldname1+" and "+fieldname2;
    }
    return '';
    })()

    if you want check the values of fiedname1 and fieldname2, the equation would be:

    (function(){
    if( fieldname1 && fieldname2 )
    {
    return "your range is between"+fieldname1+" and "+fieldname2;
    }
    return '';
    })()

    and that’s all.
    Best regards.

    Thread Starter fergieferg

    (@fergieferg)

    This is perfect thank you so much for your help codepeople

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Concatenate Calculated Fields’ is closed to new replies.