Rollbase: Can we remove system generated buttons in rollbse

Posted by tyagi.ankit40 on 24-Jun-2014 09:59

Can we remove system generated buttons in rollbse. If yes then how can we remove these buttons.

Posted by Godfrey Sorita on 26-Jun-2014 21:52

Hi Tyagi,

You can hide buttons generated by Rollbase using the code below. Paste the code to a script component where you want to hide the buttons.

<script type="text/javascript">
$(function() {
    hideButton(' Edit '); // Example for hiding the Edit button
});

function hideButton(buttonName) {  //Use this function to hide buttons
    $("input[value='"+ buttonName +"']").hide();
}

function removeButton(buttonName) {  //Use this function to remove the button element
    $(input["value='+ buttonName +"']").remove();
}
</script>

Hope this helps.

Regards,

Godfrey

All Replies

Posted by pvorobie on 26-Jun-2014 15:06

Please clarify what do you mean by "system generated buttons".

Posted by Godfrey Sorita on 26-Jun-2014 21:52

Hi Tyagi,

You can hide buttons generated by Rollbase using the code below. Paste the code to a script component where you want to hide the buttons.

<script type="text/javascript">
$(function() {
    hideButton(' Edit '); // Example for hiding the Edit button
});

function hideButton(buttonName) {  //Use this function to hide buttons
    $("input[value='"+ buttonName +"']").hide();
}

function removeButton(buttonName) {  //Use this function to remove the button element
    $(input["value='+ buttonName +"']").remove();
}
</script>

Hope this helps.

Regards,

Godfrey

This thread is closed