We ( have ) to use filemaker for a customer but we get a field not found error when adding the request.
This is the code we're using which is serving the $_POST values. (I know that I'm using mass assignment but this is currently in a testing phase)
$newRequest = $fm->newAddCommand('REGISTRATIE', $_POST);
$return = $newRequest->execute();
When we print the results of $return
we get the following error without further information.
Any idea what might be wrong?
http://pastebin.com/eqYHdDdT
Web Publishing in FileMaker this way is dependent on layouts. In your example, the layout you are referencing is named "REGISTRATIE" so all the fields must exist on that layout and be accessible.
If that layout is complicated, consider creating a dedicated web accessible layout with only the fields you need to access and/or return.
Adding to what has already been said, general best practice with the Filemaker PHP API is to have a completely separate set of Layouts for API interaction.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With