• Fabrik V4.4.1 is now available.

    This version corrects the Admin issue introduced by V4.4. V4.4.1 is available through the Joomla Updater or for download through your My Downloads area of our website.

    Turns out a code change intended for our 5.0dev branch inadvertantly got pushed to the 4.x branch (by me, duh!). The javascript structure in 5.0 will change considerably and part of that change took effect with the inadvertant code change.

    We have reverted the code change and released 4.4.1. V4.4 has been retracted.

    Sorry for any inconvenience.

  • A new version of Full Calendar is now available.

    See the details here

Show/hide button in list view

mirceat

Member
Hello,

I have a List with a php plugin enabled that will display a button for sending emails (run some code then send e-mail). The button is set to be visibile for a specific Joomla viewlevel but I need more, I need to show this button only if there is a specific value selected and saved for a dropdown field in form.

In short, how can I do the same as form_xx for list_xx to show/hide a button (not a column) based on another element value when the List load the rows? Or at least tell me how to get the value of an element in list_xx, I couldn't find any information in wiki or forum..

Thank you
 
Easiest way may be to hide the button with custom CSS.
If it's only one value (or only some values) of your dropdown field which should show the button I would
If it's relevant for security that the button doesn't do anything you must check also inside your php code because CSS (similar to JS) can always be manipulated by the user.

Or create a custom list template and modify default_headings.php and default_row.php for skipping the php button.
 
Thank you very much for help, I managed to hide the button ;) There is a part in php code that check if all conditions are meet and run the code, else redirect to main page.
 
Back
Top