Check name of form within a custom calculated function

lkendall

New member

Your current DaDaBIK version​

You are using DaDaBIK version 11.8-Elba enterprise, installed on 12-21-2022 (installation code: 1855863a3602fb9d73), the latest version of DaDaBIK is 11.8-Elba released on 12-05-2022

You are running the latest release of DaDaBIK

In case you want to upgrade to a more powerful edition (from Pro to Enterprise/Platinum, from Enterprise to Platinum) please contact us.

System info​

PHP Version: 7.4.33

mysql version: 5.5.5-10.3.37-MariaDB

Web server: Apache

Client: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 Edg/108.0.1462.76


I would like to have a calculated field on insert, but only viewable on edit/update. Is there a variable I can use to check the name of the form?
 

eugenio

Administrator
Staff member
Not sure what you mean with "only viewable" (this is something you change from permissions) but you can do something like

PHP:
if (isset($_GET['function']) && $_GET['function'] === 'edit'){

to check if you are in the edit form.
 
Top