cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
3csman
Impactful Individual
Impactful Individual

If Any Change Button Visible

I have a Gallery. I have a Button. I need a condition that says if any field in the Gallery is changed make button Visible true.

 

Is this possible?

3csman_0-1612047560362.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User II
Super User II

@3csman  

Best I could do

If(
   OR(IsBlank(DataCard_UnqID),
      IsBlank(DataCard_NewCQTitleDD),
      IsBlank(DataCard_CQStandYr),
      IsBlank(DataCard_CertBody),
      IsBlank(DataCard_DateOfAward),
      IsBlank(DataCard_ClassNo),
      IsBlank(DataCard_ClassStartDate),
      IsBlank(DataCard_ClassEndStartDate),
      IsBlank(DataCard_Attachment),
      IsBlank(DataCard_CertNo),
      IsBlank(DataCard_CertIDNo),
      IsBlank(DataCard_ReciprocityDD),
      IsBlank(DataCard_AccredtnDD),
      IsBlank(DataCard_AccrdtNo)
    ),Disabled,Edit
)

View solution in original post

6 REPLIES 6
Drrickryp
Super User II
Super User II

@

3csman
Impactful Individual
Impactful Individual

The recommendation is not providing the desired outcome with the following in the 'Reset Form/Clear Contents' button DisplayMode property.

 

     If(NewEmployeeForm.Unsaved, Edit, Disabled) 

 

I did get the following to work. However, it only works on the one field. There are twenty fields in the form (a few are dropdown boxes).

 

How can I edit the below so that it references the entire form?

 

       If(IsBlank(DataCardValue7_1),Disabled,Edit)

 

I tried If(IsBlank(NewEmployeeForm),Disabled,Edit) - it did not work. It's as if the condition is seeing something in a field; maybe the default language in the attachment control.

3csman_0-1612110114716.png

 

 

 

 

 

Drrickryp
Super User II
Super User II

@3csman 

Does this work?

If(
    Form1.Unsaved && FormMode.New,
    Edit,
    DisplayMode.Disabled
)

 

3csman
Impactful Individual
Impactful Individual

It seems all conditions are reacting to something; none cause button to appear as 'Disabled' when the form is "blank" and then in 'Edit' once data is entered. 

 

3csman_0-1612111768254.png

 

3csman
Impactful Individual
Impactful Individual

I took the high road and made it about the fields rather than the form, since that seems to work.

 

Now, is there a way to reduce the formatting of the following; Or, is this as good as it gets?

 

If(IsBlank(DataCard_UnqID),Disabled,
If(IsBlank(DataCard_NewCQTitleDD),Disabled,
If(IsBlank(DataCard_CQStandYr),Disabled,
If(IsBlank(DataCard_CertBody),Disabled,
If(IsBlank(DataCard_DateOfAward),Disabled,
If(IsBlank(DataCard_ClassNo),Disabled,
If(IsBlank(DataCard_ClassStartDate),Disabled,
If(IsBlank(DataCard_ClassEndStartDate),Disabled,
If(IsBlank(DataCard_Attachment),Disabled,
If(IsBlank(DataCard_CertNo),Disabled,
If(IsBlank(DataCard_CertIDNo),Disabled,
If(IsBlank(DataCard_ReciprocityDD),Disabled,
If(IsBlank(DataCard_AccredtnDD),Disabled,
If(IsBlank(DataCard_AccrdtNo),Disabled))))))))))))))

Drrickryp
Super User II
Super User II

@3csman  

Best I could do

If(
   OR(IsBlank(DataCard_UnqID),
      IsBlank(DataCard_NewCQTitleDD),
      IsBlank(DataCard_CQStandYr),
      IsBlank(DataCard_CertBody),
      IsBlank(DataCard_DateOfAward),
      IsBlank(DataCard_ClassNo),
      IsBlank(DataCard_ClassStartDate),
      IsBlank(DataCard_ClassEndStartDate),
      IsBlank(DataCard_Attachment),
      IsBlank(DataCard_CertNo),
      IsBlank(DataCard_CertIDNo),
      IsBlank(DataCard_ReciprocityDD),
      IsBlank(DataCard_AccredtnDD),
      IsBlank(DataCard_AccrdtNo)
    ),Disabled,Edit
)

View solution in original post

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!

Top Solution Authors
Top Kudoed Authors
Users online (67,135)