In other words instead of 'option value = newest' (which I know is incorrect), what can I put there so that if newest is selected it will execute the if statement, or if best sellers is selected it will execute the elseif statement? Here is the syntax: <?php if (condition) { Technically this isn't exactly the same as "hidden" because the option is even sent to the page, but the effect will be the same: The option will not be displayable. Hello project maintainers, This is an automated issue to help make this module compatible with Drupal 10. We are covering following operations on select option field using PHP script. The hotel features a fitness center and 3 dining options. etc. To select an option when the page loads for the first time, you can add the selected attribute to the