Custom create endpoint while keeping default edit endpoint

Custom create endpoint while keeping default edit endpoint

YOMYOM Posts: 53Questions: 22Answers: 1

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

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    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

This discussion has been closed.