MikePohatu / TsGui

Custom GUIs in ConfigMgr
GNU General Public License v3.0
47 stars 5 forks source link

Validation message persists after the GuiOption loose its focus #8

Closed Elaci0 closed 3 years ago

Elaci0 commented 3 years ago

I have a series of GuiOptions toggled by a dropdown list. Each of them has a validation option and error-message which displays errors on wrong input and "Finish" button is disabled. Though I found out that if a toggle-enabled GuiOption is triggered by an invalid input, the error message appears and stays there even if I toggle-disable the Gui-Option (which has wrong input but is not anymore on foreground) In the latter case the Finish button is working.

Thanks, alessio

MikePohatu commented 3 years ago

Hi @Elaci0,

Can you email me you full config so I can test please?

Cheers, Mike

Elaci0 commented 3 years ago

I am attaching here the file. For this test I run TSgui inside a virtual machine with an extra blank hard disk attached When you select a disk with some partitions everything works like expected except if you select the drive without any partitions: "No partition found" will be automatically selected and the invalid message appears. While here you cannot press the Finish button. As soon as you go back to the drive with partitions you still have the error message, but you can press Finish now.

Thanks, Alessio Config_diskcascade.zip

MikePohatu commented 3 years ago

Hi there,

I think I've found the issue. Expect an update in the next day or so.

Also, I think you might be missing a PurgeInactive option. On the drop down lists that have the Group_DiskX set, add PurgeInactive="TRUE", for example

`

Group_Disk1
<Variable>OSDDiskPart</Variable>

`

This will make sure your options that are setting the same variable aren't conflicting with each other

MikePohatu commented 3 years ago

Version 1.2.5.2 available on the site now with a fix for this issue.