Create Book form - Learn web development | MDN

I have finished the instructions for creating a Book form for the LocalLibrary app, and the form looks perfect. However, when I click the “Submit” button on the form, nothing happens and I just get a grey “wheel of death” in the browser tab of my application. I have reviewed both the /views/book_form.pug and the /controllers/bookController.js files in the MDN example thoroughly to make sure my code matches yours but still I have a “Submit” button which won’t submit the information from the “Create Book” form.
Link to “Express Tutorial Part 6: Working with forms/Create Book form”.

Hello @Andrew_Rea

not sure if @cchqy could help with that or not

and have a nice day both of you :slight_smile:

Sorry, all! I guess I didn’t review my code in my bookController.js file well enough. I missed a set of method parentheses in one of my escape()s.

body('isbn', 'ISBN must not be empty.').trim().isLength({ min: 1 }).escape(),
1 Like

glad to know that you figured it out well done :slight_smile:

1 Like