Custom create endpoint while keeping default edit endpoint

Custom create endpoint while keeping default edit endpoint

YOMYOM Posts: 14Questions: 5Answers: 0

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.

Answers

  • allanallan Posts: 51,440Questions: 1Answers: 7,758 Site admin

    Is it possible to use custom endpoints for only the create button and not the edit button?

    Yes. The example you linked to actually shows how to do that - use ajax with create, edit and remove options in an object. Each will be be called depending on the form action as required. So you can set the ajax.create information to point to your custom end point.

    Allan

Sign In or Register to comment.