Hi,I want to hide the “save” button only for this user, on the edit page (tableroedit.php?showdetail)
if (CurrentUserLevel() == 0 ) { //DefaultI appreciate any help! Thanks.
Hi,I want to hide the “save” button only for this user, on the edit page (tableroedit.php?showdetail)
if (CurrentUserLevel() == 0 ) { //DefaultI appreciate any help! Thanks.
You can use Startup Script to select the button and hide it, e.g.<?php if (CurrentUserLevel() == 0) { // Default ?>
$(“#btn-action”).hide();
arbei wrote:
Code is for v2019. If you use v2017, change the CSS selector for the button.$(“#btnAction”).hide(); //resuelto, gracias!
Again here.I am trying to condition the botton but it does not work in Client Scripts->Table-Specific->Edit Page->Startup Script$(document).ready(function() {
if (CurrentUserLevel()==0){//Default
$(“#btnAction”).hide();
}
});ap_tableroedit.php?showdetail=&ap_t_id=3:783 Uncaught ReferenceError: CurrentUserLevel is not defined
at HTMLDocument. (ap_tableroedit.php?showdetail=&ap_t_id=3:783)
at i (jquery-1.12.4.min.js:2)
at Object.fireWith [as resolveWith] (jquery-1.12.4.min.js:2)
at Function.ready (jquery-1.12.4.min.js:2)
at HTMLDocument.K (jquery-1.12.4.min.js:2)there is some option.
arbei wrote:
<?php if (CurrentUserLevel() == 0) { // Default ?>…
<?php } ?>arbei wrote:
arbei wrote:
…
<?php } ?>Hi,with ".hide(); " does not work
with ".remove(); " yes, works.the help is appreciated.
Please always post your latest code for more discussion.
please if I disabled, what is the script to enable it back?with ".remove(); " yes, works.
Disable or hide Button Edit if file status “Solved” this userlevelid “2”$(document).ready(function() {
if (Currentuserlevelid() == 2) { // Default ?>
$(“#x_File_Status”).change(function() {
var str = $(“option:selected”, this);
if (this.value == “Solved”) {
$(“#btnAction”)".remove(); ";
}
});File status wise edit permission of userlevelid 2please help
regards
Ahad