Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
Is there any way to hide the button from mobile/ tablet view using an interface
Discussion posts and replies are publicly visible
You may use this function to determine if the screen is being opened in a mobile device - a!isNativeMobile()
showwhen:a!isNativeMobile()
Is it right ?
{ if(a!isNativeMobile(),{},a!buttonArrayLayout( buttons: { a!buttonWidget( label: "Button", style: "NORMAL" ) }, align: "START" )) }
Because you want to hide it in mobile so it should be showWhen: not(a!isNativeMobile())
I want to hide month and week from mobile device
a!buttonLayout( primaryButtons: { a!buttonWidget( label: "Hello", showWhen: a!isNativeMobile()<>true ) } )
I got an error
you have put the showwhen in the button parameter :)-> put it in the widget or after "Buttons"
if those two buttons are in same buttonarrayLayout then you can put showWhen:not(a!isNativeMobile())
{ a!buttonArrayLayout( buttons: { a!buttonWidget( label: "Button", style: "NORMAL" ), a!buttonWidget( label: "Button", style: "NORMAL" ) }, align: "START", showWhen: not(a!isNativeMobile()), ) }
will it work with the button widget ?
a!buttonWidget( label: "Button", style: "NORMAL" ), showWhen: not(a!isNativeMobile()),