Jump to content

Search Button on Mobile Responsive


Recommended Posts

Hi, 

I wanted to share a solution I found after finding out that Caspio's default Responsive behavior for Mobile is to show a "Search" button on Mobile instead of the Search fields.

Sometimes, this is not great as the Search may just contain one simple field, so it just adds unnecessary clicks for the user.

<style>
section[class^="cbFormSection"][class*="cbSearchSpa"] div[class*="cbSearchButtonContainerM"] {
display: none !important;
}

section[class^="cbFormSection"][class*="cbSearchSpa"] div:has(select) {
display:block !important;
}
</style>  

Modify the div:has... piece in the selector to match any of your fields in the SEARCH form to avoid displaying something you don't want.
The code above matches a search form that has a dropdown (select) element on it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...