I see that you can set the 'min length' and 'max length' for a text input, but how can I restrict a user on the webvisu from typing in special characters?
Probably the best solution is to create your own Dialog library with a keyboard which only contains the characters you allow to use. See the installation folder of CODESYS where you can find a VisuDialogs.library which you can use as base for your own library: C:\Program Files\CODESYS 3.5.17.30\CODESYS\Projects\Visu\Dialogs
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is extremely helpful, thank you. How would you solve this problem on a system using a physical keyboard? I suspect you would need to create a POU to validate the inputs.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I see that you can set the 'min length' and 'max length' for a text input, but how can I restrict a user on the webvisu from typing in special characters?
Probably the best solution is to create your own Dialog library with a keyboard which only contains the characters you allow to use. See the installation folder of CODESYS where you can find a VisuDialogs.library which you can use as base for your own library: C:\Program Files\CODESYS 3.5.17.30\CODESYS\Projects\Visu\Dialogs
This is extremely helpful, thank you. How would you solve this problem on a system using a physical keyboard? I suspect you would need to create a POU to validate the inputs.
On the opened visualization, you could handle the input of the keyboard with the "hotkey configurator". https://help.codesys.com/webapp/_visu_configure_keyboard_shortcuts;product=core_visualization;version=3.5.17.0
Last edit: TimvH 2022-03-22