Custom create endpoint while keeping default edit endpoint
Custom create endpoint while keeping default edit endpoint
In having much difficulty getting the create record editor button to work, I have decided to implement my own REST endpoint for this button as shown here. However, the edit functionality currently works perfectly and I do not want to waste time implementing my own version of it. Is it possible to use custom endpoints for only the create button and not the edit button?
I have spent some time messing around with it and have been unable to get this to work. Any help would be appreciated.
This question has an accepted answers - jump to answer
Answers
Yes. The example you linked to actually shows how to do that - use
ajaxwithcreate,editandremoveoptions in an object. Each will be be called depending on the form action as required. So you can set theajax.createinformation to point to your custom end point.Allan