This topic is locked

Conditional message display on list page

5/1/2017 10:36:46 AM
PHPRunner General questions
N
none100 author

Hi,
there is an "amount" column and "amount total". How to display conditional text on List page if "amount total" is a negative number? Thanks.

romaldus 5/1/2017

in visual editor, right click on "amount total", click "view as" and choose custom.

[size="2"]Use the following code:[/size]



if ($value<0){

$value= "the number is negative";

};
N
none100 author 5/8/2017



in visual editor, right click on "amount total", click "view as" and choose custom.

[size="2"]Use the following code:[/size]



if ($value<0){

$value= "the number is negative";

};



Thanks, but what I need is to display a separate message somewhere at the top of the page, without changing displayed values, if the total amount spent (based on all records) is a negative number.