Hi guys,
How can I make the border color of the upload control red when the upload control is empty? In the attached picture all the other mandatory fields are red except the upload control, although upload.Invalid = true.
Best,
Alex
Thank you, Frank. I’ll wait for your fix.
In the meanwhile, I thought about creating a new appearance, let’s say “invalidUpload” and set the AppearanceKey = “invalidUpload” when upload1.Value == null.
Since you started playing with the upload control, may I suggest a Label property for it? In a sense it is an input control…
Best,
Alex
Hi Alex,
you actually uncovered 2 issues that we are now working on:
Both issues will be fixed for the 3.5.7 release.
I’ll keep you updated.
Best regards
Frank
Hi Frank,
In the screenshot you can see what I did, i.e. added the “invalid” state to the “upload” appearance. I did that by editing the .theme file in VS. As you can see, when I open it in the Theme Builder, I can see the addition in the Editor part, but nothing in the tree view. Isn’t this suspicious?
Alex
Hi Frank,
I’m using Material-3. Yes, I have tried adding a new state named “invalid” to the upload appearance, and putting into it the contents of the textbox invalid state. I have also tried to make the textfield component of the upload appearance inherit from the textbox instead of textfield – don’t know if this is correct. None of these two changes made a difference.
Alex
Hi Alex,
what theme are you using? Did you try copying over the theme settings for the invalid state of the textbox to the upload section?
Best regards
Frank
Please login first to submit.