cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Gorilla_8
Level 8

Is it possible to not show a field on HTML?

I wanna visible or not when a "type of expense" is selected, its possible to that on HTML?

 

Screenshot_1.png

3 REPLIES 3
GarethPrisk
Level: Powered On

Re: Is it possible to not show a field on HTML?

Is that a Form, a Gallery, or a set of individual Controls?

You will be able to get the value of the 'Type of Expense' and then use that for the Visible property of the other two controls, using an IF statement or similar.

Gorilla_8
Level 8

Re: Is it possible to not show a field on HTML?

Its a HTML text.

 

 

 

I try to use "IF" on HTML, but did not work out properly

WarrenBelz
Level 8

Re: Is it possible to not show a field on HTML?

Hi @Gorilla_8 ,
There are a couple of easy ways if doing this in HTML.
he easiest I use is to set the required text as a Variable with an If statement

If(
   [whatever is true],
   Set([Variable], [Text to be inserted]),
   Set([Variable], "")
)

Then in the HTML

"Text before" & Variable & "Text after"

You could also insert the top item in the bottom box in place of Variable.
If you get stuck on this, send me the HTML as text and the If statement for the code to be visible.

 

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.

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,494)