Calc plugin do not run

georgie

Member
Hello there

I want to use the plugin field "calc" to sum the values ??of several other fields.

But impossible to use it. The field in question is still grayed out, and does not calculate the value.

Can you help me?

Thank you!
 
The calc element in form view is always grayed out, it's no input field but just showing what you are returning with the php code defined in the calc element.
 
Ok, calc plugin should display just in detail view ? This does not work for me.

I have tried two syntaxes :

return {projets___moderation_budget_nun} * 2

or

{projets___moderation_budget_nun} * 2

Without success...
 
At least it needs a ; at the end
return $x;

And placeholders should always be quoted to avoid php errors if the element is empty.
return '{your-full-element}';
 
Ok thanks !!!

Now indeed, it run in detail view !!!

But is it a way to provide the value in form wiew ?
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top