Migrated from Redmine #979 | Author: Can Demir Status: Feedback | Priority: High, I’m very impatient | Created: 2022-12-02
Hi,
When creating an booking, I use the book method in the Company public service. Can I assign values to Intake forms parameters with the $additional parameter in the Company public service ‘book’ method?
I have defined an Intake form field in Manage->Intake forms, how can I assign values to these parameters while creating an booking?
Which method should we use? Could you share a sample request?
Hi,
when you get additional fields via getAdditionalFields method you will receive name of field.
In $additional you can just pass data like
{
“[[fieldName]]”: [[value]]
}
hi, you can call it like in example below
$client->book(40, 1, 1, 2, “2019-09-08”, “13:00”, null, null, 0, array(‘e28064f09a75d91c503f81a0cda3f71e’=>‘field 1 data’, ‘fa23c732e6a0b3caf9aa29b7909b1a44’=>‘field 2 data’));
you need to pass idhash of the additional field, not its name