[xwiki-users] Hide buttons in AppWithinMinutes solutions
Hello all, Is there a way to hide "Preview" and "Save and Continue" buttons in forms created using AppWithinMinutes? I tried hiding them via CSS extension, using Display:None; but a specific button is a bit more difficult to get a CSS handle on since they aren't generated with an ID tag.. I suppose I could hide it using JavaScript, but I'm trying to avoid that if I can.... Thanks in advance
On Thu, Feb 12, 2015 at 2:31 AM, Jason Clemons <jason.clemons@live.com> wrote:
Hello all,
Is there a way to hide "Preview" and "Save and Continue" buttons in forms created using AppWithinMinutes?
If you look at editactions.vm [1] you'll see that only the "Preview" button can be hidden with a Velocity variable. Put this in your sheet: #set ($previewenabled = false)
I tried hiding them via CSS extension, using Display:None; but a specific button is a bit more difficult to get a CSS handle on since they aren't generated with an ID tag..
For the "Save and Continue" you'll have to use CSS. input[name="action_saveandcontinue"] { display: none; } Hope this helps, Marius [1] https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwik...
I suppose I could hide it using JavaScript, but I'm trying to avoid that if I can....
Thanks in advance _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
participants (2)
-
Jason Clemons -
Marius Dumitru Florea