-1

Is there a way to display a confirmation modal like when deleting resource for update case? See the screenshot below. enter image description here

I didn't find any solution yet. I saw few more similar questions but no one answered. Thank you for your help!

1
  • You could debug the code and check where resides file shown in the image. Then you can reproduce similar for other request. I am not using Nova, just proposing where I'd go first. Commented Feb 8, 2024 at 23:00

1 Answer 1

0

I was having the same problem but then I used bootstrap modal . I put this code inside my form:

<button type="button" class="add-btn m-4 shadow" style="border: none;"  data-toggle="modal" data-target="#exampleModal">Valider</button>
            <!-- Modal -->
            <div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
                <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                    <h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                    </div>
                    <div class="modal-body">
                    ...
                    </div>
                    <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
                    <button type="submit" class="btn btn-primary">Save changes</button>
                    </div>
                </div>
                </div>
            </div>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.