cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
johnjohn123
Level: Powered On

Invalid Argument Type on this formula "If(DataCardValue9_1.SelectedItems.TermGuid ="7***1",true,false)"

I have the following 2 managed metadata columns inside my sharepoint custom edit form:-

 

1. DataCardValue9_1

2. DataCardValue3_1

 

i want to set the following:-

 

1. if the user select a term with specific GUID from DataCardValue9_1 to show DataCardValue3_1, otherwise to hide DataCardValue3_1. so i try this formula:-

 

 

2inone.png

but i got this error "Invalid Argument Type" on this formula "If(DataCardValue9_1.SelectedItems.TermGuid ="7***1",true,false)"

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Invalid Argument Type on this formula "If(DataCardValue9_1.SelectedItems.TermGuid ="7***1",true,false)"

@johnjohn123
I think this is how you should write instead. The reason you are getting an error is because selecteditems returns a table which will never equal a text string.

Do not include the IF statement. Use my code as is within the Visible property.

"7***1" in DataCardValue9_1.SelectedItems.TermGuid

—-
Please Accept as Solution if this post answered your question so others may find it more quickly. If you found this post helpful consider giving it a Thumbs Up.

View solution in original post

2 REPLIES 2
Super User
Super User

Re: Invalid Argument Type on this formula "If(DataCardValue9_1.SelectedItems.TermGuid ="7***1",true,false)"

@johnjohn123
I think this is how you should write instead. The reason you are getting an error is because selecteditems returns a table which will never equal a text string.

Do not include the IF statement. Use my code as is within the Visible property.

"7***1" in DataCardValue9_1.SelectedItems.TermGuid

—-
Please Accept as Solution if this post answered your question so others may find it more quickly. If you found this post helpful consider giving it a Thumbs Up.

View solution in original post

johnjohn123
Level: Powered On

Re: Invalid Argument Type on this formula "If(DataCardValue9_1.SelectedItems.TermGuid ="7***1",true,false)"

thanks a lot worked well

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,446)