Bootstrap has a few functions that can be called manually on modals:

$('#myModal').modal('toggle');
$('#myModal').modal('show');
$('#myModal').modal('hide');

You can see more here: Bootstrap modal component

Specifically the methods section.

So you would need to change:

$('#my-modal').modal({
    show: 'false'
});

to:

$('#myModal').modal('show');

If you're looking to make a custom popup of your own, here's a suggested video from another community member:

How to create a custom popup using jQuery and CSS

Answer from Chase on Stack Overflow
🌐
Bootstrap
getbootstrap.com › docs › 4.0 › components › modal
Modal · Bootstrap
Use Bootstrap’s JavaScript modal plugin to add dialogs to your site for lightboxes, user notifications, or completely custom content.
🌐
MDBootstrap
mdbootstrap.com › standard › modal
Bootstrap Modal - free examples & tutorial
Below is a live demo followed by example HTML. For more information, read the modal API/events doc for details on relatedTarget. ... Show a second modal and hide this one with the button below.
🌐
Bootstrap
getbootstrap.com › docs › 5.3 › components › modal
Modal · Bootstrap v5.3
Use Bootstrap’s JavaScript modal plugin to add dialogs to your site for lightboxes, user notifications, or completely custom content.
🌐
Bootstrap
getbootstrap.com › docs › 5.0 › components › modal
Modal · Bootstrap v5.0
Use Bootstrap’s JavaScript modal plugin to add dialogs to your site for lightboxes, user notifications, or completely custom content.
🌐
W3Schools
w3schools.com › bootstrap › bootstrap_modal.asp
Bootstrap Modal Plugin
Tip: Plugins can be included individually (using Bootstrap's individual "modal.js" file), or all at once (using "bootstrap.js" or "bootstrap.min.js"). The following example shows how to create a basic modal:
🌐
CoreUI
coreui.io › react › documentation › components › modal
Bootstrap Modal - extended examples and tutorials
July 5, 2023 - <!-- Full screen modal --> <div class="modal-dialog modal-fullscreen-sm-down"> ... </div> ... Heads up! In our documentation, all examples show standard CoreUI implementation. If you are using a Bootstrap-compatible version of CoreUI, remember to use the following changes:
🌐
Bootstrap
getbootstrap.com › docs › 3.3 › javascript
JavaScript · Bootstrap
Transitions can be globally disabled ... or bootstrap.min.js, as the case may be) has loaded: ... Modals are streamlined, but flexible, dialog prompts with the minimum required functionality and smart defaults. Be sure not to open a modal while another is still visible. Showing more than ...
🌐
Bootstrap
getbootstrap.com › docs › 4.6 › components › modal
Modal · Bootstrap v4.6
Use Bootstrap’s JavaScript modal plugin to add dialogs to your site for lightboxes, user notifications, or completely custom content.
Find elsewhere
🌐
React Bootstrap
react-bootstrap.netlify.app › modals
Modals | React Bootstrap
Unlike vanilla Bootstrap, autoFocus works in Modals because React handles the implementation. Below is a static modal dialog (without the positioning) to demonstrate the look and feel of the Modal. ... A modal with header, body, and set of actions in the footer. Use <Modal/> in combination with other components to show or hide your Modal.
🌐
npm
npmjs.com › package › bootstrap-show-modal
bootstrap-show-modal - npm
bootstrap.showModal({title: "Hello World!", body: "A very simple modal dialog without buttons."})
      » npm install bootstrap-show-modal
    
Published   Jan 11, 2025
Version   6.0.10
Author   Stefan Haack
🌐
htmx
htmx.org › examples › modal-bootstrap
htmx ~ Examples ~ Modal Dialogs in Bootstrap
<button hx-get="/modal" hx-target="#modals-here" hx-trigger="click" data-bs-toggle="modal" data-bs-target="#modals-here" class="btn primary">Open Modal</button> <div id="modals-here" class="modal modal-blur fade" style="display: none" aria-hidden="false" tabindex="-1"> <div class="modal-dialog modal-lg modal-dialog-centered" role="document"> <div class="modal-content"></div> </div> </div>
🌐
SitePoint
sitepoint.com › blog › bootstrap › understanding bootstrap modals
Understanding Bootstrap Modals — SitePoint
November 6, 2024 - show: used for opening and closing the modal. It can be either true or false. focus: puts the focus on the modal when initialized. It can be either true or false and is set to false by default.
🌐
MDBootstrap
mdbootstrap.com › standard › modal show, close, hide & toggle
Bootstrap 5 Modal Show, Close, Hide & Toggle - free examples
This helper page will simply provide you with some examples of most common JavaScript methods for Bootstrap modals. Below you will find some of the most common use cases of modal methods. For usage via data attributes, please read the main documentation. ... const myModalEl = document.getElementById('myModal') const modal = new mdb.Modal(myModalEl) modal.show()
🌐
W3Schools
w3schools.com › bootstrap › bootstrap_ref_js_modal.asp
Bootstrap JS Modal Reference
The Modal plugin is a dialog box/popup window that is displayed on top of the current page.
🌐
Tutorial Republic
tutorialrepublic.com › faq › how-to-launch-bootstrap-modal-on-page-load.php
How to Launch Bootstrap Modal on Page Load
You can use the Bootstrap .modal('show') method for launching the modal window automatically when page load without clicking anything.
🌐
Tutorial Republic
tutorialrepublic.com › twitter-bootstrap-tutorial › bootstrap-modals.php
How to Create Modals with Bootstrap 5 - Tutorial Republic
You can easily create very smart and flexible dialog boxes with the Bootstrap modal plugin. The following example oulines the basic structure to create a simple modal with a header, message body and the footer containing action buttons for the user. ... <!-- jQuery Code (to Show Modal on Page Load) --> <script> $(document).ready(function() { $("#myModal").modal("show"); }); </script> <!-- Modal HTML --> <div id="myModal" class="modal fade" tabindex="-1"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title">Confirmation</h5> <button type="but