cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
indhaa
Post Patron
Post Patron

Disable submit which must meet multiple conditions

I want the submit button to be disabled if the below three condition doesn't meet.

I'm not able to combined the three conditions. It works before but when I tried to combined with the digit condition, its stopped working correctly. I don't know if it worked correctly before or not now.

 

If mobile number is less than 7 digit to disable submit button

     If(Len(MobileNo_Input.Text) < 7, Disabled, Edit)

 

If the drop down button equal "Other", check Other field is empty or not

If(DeviceType_Dropdown.Selected.Value="Other",If(IsBlank(OtherType_Input),Disabled,Edit))

 

Check if the below mandatory fields are empty

If(IsBlank(MAC_1)||IsBlank(MAC_2)||IsBlank(MAC_3)||IsBlank(MAC_4)||IsBlank(MAC_5)||IsBlank(MAC_6)||IsBlank(MAC_6)||IsBlank(Name_Input)||IsBlank(Desig_Input)||IsBlank(Email_Input)||IsBlank(Org_Input)||IsBlank(Justification_Input),Disabled,Edit)

 

Anyone have an idea how to apply the three conditions to the DisplayMode of the submit button

 

Thanks in advance

  

1 ACCEPTED SOLUTION

Accepted Solutions
RameshMukka
Responsive Resident
Responsive Resident

Can you try this on DisplayMode property of the button?

 If(Len(MobileNo_Input.Text) < 7 && DeviceType_Dropdown.Selected.Value="Other" && IsBlank(OtherType_Input) && (IsBlank(MAC_1)||IsBlank(MAC_2)||IsBlank(MAC_3)||IsBlank(MAC_4)||IsBlank(MAC_5)||IsBlank(MAC_6)||IsBlank(MAC_6)||IsBlank(Name_Input)||IsBlank(Desig_Input)||IsBlank(Email_Input)||IsBlank(Org_Input)||IsBlank(Justification_Input)),Disabled,Edit)

View solution in original post

3 REPLIES 3
RameshMukka
Responsive Resident
Responsive Resident

Can you try this on DisplayMode property of the button?

 If(Len(MobileNo_Input.Text) < 7 && DeviceType_Dropdown.Selected.Value="Other" && IsBlank(OtherType_Input) && (IsBlank(MAC_1)||IsBlank(MAC_2)||IsBlank(MAC_3)||IsBlank(MAC_4)||IsBlank(MAC_5)||IsBlank(MAC_6)||IsBlank(MAC_6)||IsBlank(Name_Input)||IsBlank(Desig_Input)||IsBlank(Email_Input)||IsBlank(Org_Input)||IsBlank(Justification_Input)),Disabled,Edit)

View solution in original post

Hi thanks

 

I made a small change and it is working correctly now


If(Len(MobileNo_Input.Text) < 7 || DeviceType_Dropdown.Selected.Value="Other" && IsBlank(OtherType_Input) || (IsBlank(MAC_1)||IsBlank(MAC_2)||IsBlank(MAC_3)||IsBlank(MAC_4)||IsBlank(MAC_5)||IsBlank(MAC_6)||IsBlank(MAC_6)||IsBlank(Name_Input)||IsBlank(Desig_Input)||IsBlank(Email_Input)||IsBlank(Org_Input)||IsBlank(Justification_Input)),Disabled,Edit)

RameshMukka
Responsive Resident
Responsive Resident

@indhaa If it helped can you mark this as solution so that it can help others too.

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (68,714)