Add validation functions to (Numeric)EditFields with consistent look-and-feel
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
NumericEditFields contain functionality to validate/restrict user input to numbers or specific ranges. What is best practice to add additional validations and use validations for EditFields (text)?
- Is there the possibility to add validation functions via function handle?
- If I validate the input in the ValueChanged function: is there a documented function that I can use to achieve the same error-highlighting style in the GUI that Matlab uses for the standard validation functions (a tooltip in the same style and red field border)?
- Is the same approach usable for EditFields (text)?
- How do I achieve a consistent look-and-feel for the user that alerts them to input errors?
0 commentaires
Réponses (1)
Navya Singam
le 7 Oct 2022
Hi Carina,
You can refer the Code Response to Changed Edit Field Text section in the following documentation for more information on how to use the callbacks for validation on Edit field (both numeric and text) in App Designer.
1 commentaire
Voir également
Catégories
En savoir plus sur Develop uifigure-Based Apps dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!