cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RM365
Regular Visitor

Simple If statement in custom sharepoint list form

Hi, I have a really simple concept that I just cannot get to work. I am customizing a SharePoint list form and I want to control the visibility of a lookup field based on the setting of a Yes/No toggle in the preceding question.

 

i thought something like this would work: If(DataCardValue6.Value=1,true,false) in the Visible function of the lookup field.

 

DataCardValue6 is the Yes/No toggle in the preceding question

I have tried 1 / On / Yes in the logic and nothing works

 

what am i doing wrong?!

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @RM365 ,

Simply set the Visible of the Lookup control to 

DataCardValue6.Value

If it is true, then the Visible will be also true (and the opposite)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

4 REPLIES 4
WarrenBelz
Super User
Super User

Hi @RM365 ,

Simply set the Visible of the Lookup control to 

DataCardValue6.Value

If it is true, then the Visible will be also true (and the opposite)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Nogueira1306
Super User
Super User

That DataCard returns 2 values (true or false)

So, if you put 

 

DataCardValue6.Value

 

 

on visibility, it will solve your problem 

@Nogueira1306 ,

Just what I posted about 10 minutes before . . .

Told you it was simple - thanks @WarrenBelz - works a charm

and thanks @Nogueira1306 also!

Helpful resources

Announcements
Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

<
Users online (4,068)