Hi @Perez ,
Is there a LookUp field in your Main SP List reference values from the Version_ID field in your first Table?
Do you want to disable your Edit form once the user select a Version_ID option from the LookUp field ComboBox, which has been marked as freezed?
I assume that the is Version Freezed? field is a Yes/No type column in your second table (SP List), please consider take a try with the following workaround:
Set the OnChange property of the LookUp field ComboBox in your Edit form to following:
Set(VersionRecord, LookUp(Versions, 'Version ID'= LookUpFieldComboBox.Selected.Value));
If(
!IsBlank(VersionRecord) && VersionRecord.'is Version Freezed?' = true,
Notify('Your could not choose a Version Id which is Freezed, please re-choose again!', NotificationType.Error)
)
Set the DisplayMode property of each data card (except the LookUp field data card) in your Edit form to following:
If(
!IsBlank(VersionRecord) && VersionRecord.'is Version Freezed?' = true,
DisplayMode.Disabled,
DisplayMode.Edit
)
Set the DisplayMode property of the "Submit" button to following:
If(
!IsBlank(VersionRecord) && VersionRecord.'is Version Freezed?' = true,
DisplayMode.Disabled,
DisplayMode.Edit
)
In addition, you could also consider try the following formula directly:
Set the OnChange property of the LookUp field ComboBox in your Edit form to following:
If(
LookUp(Versions, 'Version ID'= LookUpFieldComboBox.Selected.Value).'is Version Freezed?' = true,
Notify('Your could not choose a Version Id which is Freezed, please re-choose again!', NotificationType.Error)
)
Set the DisplayMode property of each data card (except the LookUp field data card) in your Edit form and the "Submit" button to following:
If(
LookUp(Versions, 'Version ID'= LookUpFieldComboBox.Selected.Value).'is Version Freezed?' = true,
DisplayMode.Disabled,
DisplayMode.Edit
)
Please consider take a try with above solution, then check if the issue is solved.
Best regards,