Hi Experts ,
Please help me to resolve below Issue .
I have gallery for child items creation in my form , I have added one pattern validation for one of the field (textbox) onchange property .
I have added 1st row , validation working as expected ,
but after adding second row to the gallery and If I enters wrong input in textbox it is firing and highlighting the textbox border( I have code for this ) for the 1st row as well .
require your help how to handle this kind of scenario
Please find the below snapshots and code reference .
OnChange Property of TextBox:
If(
!IsMatch(
txtFullAFE1.Text,
"3800(.{6})\.(.{6})\.(.{6})"
) && !IsMatch(
txtFullAFE1.Text,
"3800(.{6})\.(.{6})"
),
Notify(
"The value you typed do not match the required format. 3800******.******.****** or 3800******.******",
NotificationType.Error
);
UpdateContext(
{
locIsValidChildControls: false,
locIsAFE1FormatCorrect: false
}
),
Notify(
"Format is Correct ..buddy",
NotificationType.Success
);
UpdateContext(
{
locIsValidChildControls: true,
locIsAFE1FormatCorrect: true
}
)
);Border Color Property of TextBox :
If(
Not(IsBlank(Trim(txtMaterialDesc_3.Text)) || IsEmpty(Trim(txtMaterialDesc_3.Text))) And (IsBlank(txtFullAFE1.Text) || IsEmpty(Trim(txtFullAFE1.Text))),
Red,
If(
locIsAFE1FormatCorrect,
RGBA(
0,
18,
107,
1
),
Red
)
)
Thanks in Advance !
Regards,
Mahesh

Report
All responses (
Answers (