Forums

Custom fields PHP

agostino 18 Jan, 2018
Hi, can I update $this->data('VAR') in a custom field via PHP.

I gave some parameters from standard menu item but I need to update it from a $_GET value

$this->data('kind','DEFAULT')
must be overwriter from $_GET['kind'].

I seeking for documentation of api but... i Cannot find nothing.

I discover that $this methods are:
[1] => _connection
[2] => _event
[3] => setup
[4] => parse
[5] => value
[6] => varInfo
[7] => methodInfo
[8] => params
[9] => redirect
[10] => page
[11] => url
[12] => _url
[13] => message
[14] => connection
[15] => chronoform
[16] => event
[17] => section
[18] => template
[19] => _template
[20] => lang
[21] => plugin
[22] => fn
[23] => view
[24] => multiline
[25] => rparams
[26] => signed
[27] => end
[28] => initialize
[29] => get
[30] => set
[31] => data
But I cannot understand if someone of this can manipulate data in "writing" mode.

Thansk
--
AZ
agostino 18 Jan, 2018
searching into sources I find the answare.
$this->data(VARNAME,DEFAULT,SET:false/true);
You can set everything with $this->data(VARNAME,VALUE,true);


--
AZ
GreyHead 19 Jan, 2018
Hi agostino,

Please check the PHP Code section on page 34 of the manual.

Bob
agostino 19 Jan, 2018
Thanks... but the question is where I can find the manual?
GreyHead 19 Jan, 2018
Hi agostino,

On the downloads page here.

Bob
agostino 19 Jan, 2018
Thanks Bob/GreyHead😀
This topic is locked and no more replies can be posted.