How-To

Hide Resource dropdown


If you only have one resource, ABPro will automatically select it. The drop down list cannot be removed as the client side scripting requires it there.

You can use CSS to hide the drop down list if you wish.

 

Method 1 (preferred)

ABPro Control Panel | Edit Files | Edit CSS tab, add...

#resources_div {
    visibility: hidden;
    display: none;
}

 

Variation, hide on desktop but show on mobile..

#sv_apptpro_request_gad #resources {
    visibility: hidden;
    display: none;
}

#sv_apptpro_request_gad #resources_label {
    visibility: hidden;
    display: none;
}

 

 

Method 2

 

Edit the view for the booking screen you are using, here I will do the GAD Booking screen so the file is:
\components\com_rsappt_pro3\sv_codeblocks\sv_codeblock_resource.php

 

Around line 83 look for:

<div class="sv_table_row">
<div class="sv_table_cell_name"><label id="resources_label" style="visibility:hidden;"><?php echo JText::_($resource_label);?></label></div>

 

Add the red code:

<div class="sv_table_row" style="visibility:hidden;display:none">
<div class="sv_table_cell_name"><label id="resources_label" style="visibility:hidden;"><?php echo JText::_($resource_label);?></label></div>