Dynamically add fields to input dialog
-
17-04-2021 - |
Question
Is it possible to somehow add input fields to an input dialog (inputdlg()
) in MATLAB when a specific event occurs, e.g. the user types in a certain value in one of the existing fields...?
Or is there any other 'hacky' way to achieve this so that the user doesn't have to click "OK" and I have to code to reopen another input dialog which contains more input fields..
Thanks!
Solution
inputdlg
is not a built in function, so you might as well copy it, call it by another name and change its functionality.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow