Hiding Button In HTML Section
Hi everyone,
I have a problem with visibility button in mobile app,
I need to hide a button when it open not by desktop version.
The problem is the section came from HTML, i want to try configure it but i think it's too risky.
I try using CSS to hide it using device-width and it not good enough because it will depends by the static value for width device.
How best way adding expression on it ?
Thank you, here i attached the HTML from the section and my CSS
Hi Bachtiar,
Add the following code in UserWorkForm:
<style> <pega:when test='!pyIsMobile'> button#LVBViewInExcel { visibility: hidden; } </pega:when> </style>
I tried it at my end and it works.
Thanks
Comments
Keep up to date on this post and subscribe to comments
Hi
To hide the button you can use the syntax :
<pega:when test='pyIsMobile'>
Include code for the button
</pega:when>
Hope it helps.
Regards
Bhavya
- reply
Hi Bachtiar,
Add the following code in UserWorkForm:
<style> <pega:when test='!pyIsMobile'> button#LVBViewInExcel { visibility: hidden; } </pega:when> </style>
I tried it at my end and it works.
Thanks
- reply
- Hide the default Action Section buttons? This is not hiding the default Submit button on my flowaction
- Can we hide a section/button based on a property validation
- How to call custom javascript and html onclick of button in section?
- how to call/show Show-HTML Activity using button in section?
- Currently web-login.html file is used to modify pega login page in HTML and CSS, Is there a way to build login screen using pega sections and harness rather than HTML code