Using Tokens in CF5

olaeblue 28 Jan, 2015
I have a CF4 form that used to recieve a token such as

http://www.mysite.org.uk/index.php/component/chronoforms/?chronoform=edit_past_members&token=640


And the DB record Loader had Request Parameter as 'token'

I am assuming in CF5 DB Read you need a condition such as

<?php return array('cf_id'=> #the token#); ?>


In order to do the same thing, but don't know how to reference the token parameter.

Any advice?

Thanks
GreyHead 29 Jan, 2015
Hi olaeblue,

I'm not sure if this is the official solution but it seems to work:
<?php
return array( 'cf_id' => $this->view->data['token'] );
?>


Bob
This topic is locked and no more replies can be posted.