Passing parameter value to field in a form

Pass a URL parameter value to a field in a ChronoForms form using ChronoConnectivity 6.

Overview

The issue occurred because the PHP function was not returning a value before the toolbar button used it as a URL parameter.
Ensure the PHP function is called and returns the value before the toolbar button event, so the parameter is properly included in the URL and passed to the form field with the matching ID.

Answered
Connectivity v6
at ataylor14 15 Feb, 2018
In chronoforms one can pass a parameter in the url which can be captured by a field on a form that has the same id as the parameter passed in the url.

I am trying to have this same effect using chronoconnectivity 6.
Here is what I have:

{fn:php} where I return as var a value called say php_var
{view:toolbarbutton} I call an event using the php_var as a URL parameter: book_id={var:php_var} - this goes in the URL box
The event called by the toolbarbutton calls a form that has a field with the same id as the name php_var.
But no value gets received.

What am I doing wrong?
Thank you
Amelia
at ataylor14 15 Feb, 2018
Answer
Sorry
I had a mistake in the PHP function as it was returning nothing hence I was not sending any parameter.
The reason was that I had to link this php with calling the function to read data again before the toolbarbutton used the parameter in the url.

Not sure if I am making any sense at all. for other people.

But sorry for posting before checking all my steps.
Regards
This topic is locked and no more replies can be posted.