0

I've created a new extension to SPFx to create a new item for a list. This contains more checks then the default action, because some fields depends on an other field. My question is now how could I replace the default "new" command by my custom created "new" command?

Same thing with the "edit" command.

  • 2
    You need hide original with CSS and move your to its position. – Zdeněk Vinduška Jan 30 at 15:19
  • @ZdeněkVinduška: Removing the buttons using CSS is not a good opinion because other buttons from other lists will being removed to. 🙁 – H. Pauwelyn Jan 31 at 8:47
1

Unfortunately removing default buttons in not supported in modern SharePoint right now. One alternative is to customize the form in power-apps and remove all the fields from the form. Leaving the form with a label "This form isn't functional".

Now the user is supposed to click the other command button. This is what we did as a work around.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.