Hi All,
I have a Textbox linked to a SharePoint list column. I am trying to disable the submit button if the textbox icon is giving a warning.
I hope you can help
Colin
Solved! Go to Solution.
You can make use of the formula you stated:
If(
IsMatch(
DataCardValue4.Text,
"([A-Za-z]*)"
),
DisplayMode.Edit,
DisplayMode.Disabled
)
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Am assuming you have a validation to show or not to show the warning icon in the Visible property, use this approach:
In the DisplayMode of the submit button;
If(Icon1.Visible,DisplayMode.Disabled,
DisplayMode.Edit)
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Hi
Sorry I should have added the code to my original question.
The icon.Warning changes colour and turns from a red warning sign to a green tick. The red warning sign shows as soon as you open the submit form.
##########################
on icon:
If(
IsMatch(
DataCardValue4.Text,
"([A-Za-z]*)"
),
Check,
Icon.Warning
)
##########################
On Colour:
If(
IsMatch(
DataCardValue4.Text,
"([A-Za-z]*)"
),
Green,
Red
)
##########################
Thanks
Colin
You can make use of the formula you stated:
If(
IsMatch(
DataCardValue4.Text,
"([A-Za-z]*)"
),
DisplayMode.Edit,
DisplayMode.Disabled
)
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Thanks "Super User III"
That worked perfectly
Hello, how do I make it check for either the warning icon type (check or warning) or the warning icon color (green or red)? Mine will be visible either way, so checking for visibility won't work for me. I want to disable the button if the warning icon type is "warning" or if the icon color is "red".
User | Count |
---|---|
251 | |
102 | |
94 | |
48 | |
37 |