Hide fields in pc view while showing in mobile view
I'm customizing a form for mobile use. I know there are checkboxes on a field that you can uncheck to prevent it from showing in mobile or tablet. But is there any way to hide a field in the PC version of the form, but have it show on mobile? Or is there a form load rule that will run based on the viewing device?
The reason I'm asking is that I have a label field on the pc version that is a little large for the mobile version (trying to reduce user scroller distance). So, I created a second label that is a little smaller and shows great on the mobile version, but I need to hide it on the PC version (otherwise I have 2 labels).
Thoughts? Version 7 SU 2.7
-
Gwen,
AgilePoint provides a eForm Helper Method getCurrentDeviceType to get the current device type where the form loads.
In continuation, you can make use of the eForm Helper Constant known as deviceType to compare the device type returned from the getCurrentDeviceType method.
Based on the response, you can Hide the field in PC mode
Thanks
Please sign in to leave a comment.
Comments
2 comments