Is there any way to add mandatory check for the input to the MessageBox prompt in Extjs like we use allowblank for textfields?
How to add a MessageBox prompt in Extjs with mandatory input
152 Views Asked by Aakash Singh At
1
There are 1 best solutions below
Related Questions in JAVASCRIPT
- Using Puppeteer to scrape a public API only when the data changes
- inline SVG text (js)
- An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
- Storing the preferred font-size in localStorage
- Simple movie API request not showing up in the console log
- Authenticate Flask rest API
- Deploying sveltekit app with gunjs on vercel throws cannot find module './lib/text-encoding'
- How to request administrator rights?
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- In Datatables, start value resets to 0, when column sorting
- How do I link two models in mongoose?
- parameter values only being sent to certain columns in google sheet?
- Run main several times of wasm in browser
- Variable inside a Variable, not updating
Related Questions in EXTJS
- how to define Ext.elevateFunction
- `ariaAttributes` config is not working in ExtJS modern toolkit
- Ext JS Issue With Window.id when more than 1 instance of Ext sandbox version is bundled
- sencha extjs remove approach and use .sync() is not calling API
- Extjs - get SVG image element by ID inside qtip
- Use custom icon in Pimcore menu item
- Extjs 7.0 Classic Mymask Message is loading and will disappear but only one user is not closing when screen renders
- ExtJs - what install on server
- Problem with building my app with ExtJS CE
- Ext.js Cannot read properties of undefined (reading 'controller')
- Get class name by xtype
- ExtJs: find a record, edit and post changes
- Is it possible to use custom variables in an extjs store?
- How to add an authentication header in sencha architect, using the store option?
- Ext JS: vulnerabilities with CSP headers
Related Questions in EXTJS4
- how to define Ext.elevateFunction
- Is it possible to use custom variables in an extjs store?
- ExtJs - delay in rendering column list in table when adding dropdown from column list
- How to reset pagination in datastore-Extjs
- How to use menuDisabled inside a tree grid panel
- having search bar inside grid with dropdown, how to get floating dropdown when entering last 3 digit
- I want to show status without refreshing page
- how can I disable checkbox for the same grid row using listener?
- Extjs-When trying to download a zip file , zip file getting corrupted
- Extjs: Remove child tags from tagfield when parent tag is removed
- Unrecognized class name / alias: widget.passwordfield
- Invalid namespace ExtJs
- How to add a MessageBox prompt in Extjs with mandatory input
- getNameByAlias removed in Ext JS 5
- Extjs Iframe - displays "cannot connect error message"
Related Questions in EXTJS4.2
- how to define Ext.elevateFunction
- How to restore folder structure from a minified/bundled up sencha file esm-all on Sencha 4.2?
- EXTJS 4.2 disable close button on Ext.Window
- ExtJs - delay in rendering column list in table when adding dropdown from column list
- Time slots in Ext Js grid 4.2
- Extjs 4.2 Grid Design With Fixed/Constant Values
- ExtJS - Text Treeview Align
- How to use menuDisabled inside a tree grid panel
- I want to show status without refreshing page
- Can we tab through the elements of bar graph in sencha 4.2 Extjs
- Extjs-When trying to download a zip file , zip file getting corrupted
- How to connect piechart and legend in different panels in EXTJS
- Extjs: Remove child tags from tagfield when parent tag is removed
- How to add a MessageBox prompt in Extjs with mandatory input
- Extjs Iframe - displays "cannot connect error message"
Related Questions in EXTJS5
- Ext JS 5 Data Binding Combobox
- ExtJS Find the id of an element
- ExtJS: What are the only required files for grid?
- ExtJS panel crashes when removeAll() calling frequently
- How to display nested objects in a GridPanel in ExtJS (and Sencha architect)?
- Using ExtJs Grid on existing HTML page
- change button text color in ExtJS
- ExtJS5 Store filter "Uncaught TypeError: Cannot read property 'get' of undefined"
- How can addCls to Button with ViewModel binding in ExtJS5
- DisplayField overflow ellipsis in ExtJS 5
- Ext JS Dashboard Layout and maximize/minimize panels
- ExtJS Remove item of a store
- ExtJS 5 - Enable Scroll in Multiselect component disabled state
- Extjs Format of numberfield
- ExtJS5 Web Desktop Sample: Unable to fire event from controller
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
New answer:
You are correct. The Ext.Msg class is a singleton so you can't really mess much with buttons or functionality, i see that now. The function that gets called on a button press is the same for all buttons... can't stop the hide with the base functionality.
So the best thing to create an instance of Ext.MessageBox and add the needed validation and button disabling and enable. Here is a quick fiddle i put together showing how I would do that.
Message Box Fiddle
Original answer:
the Ext.Msg.prompt method accepts an argument (last argument, prompt) that is the field configuration.
from the docs: