Jump to content
  • 0

Image button


telly
 Share

Question

Hi - I need help to change the image of the button.

The workaround that I have right now is I add an HTML block and input the CSS in the header. Currently, it is working but I want to change the image button to other buttons (Submit, update, and back). Is there another workaround for this?

Thanks in advance.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Hi telly

What I can suggest replacing the image of your button follows this step below:

1. Go to Style > Button > Image Replacement.
2. Enable Image Action 
3. Paste the Image URL 

Note: Make sure that the image is uploaded or it is accessible online(you can upload your image on your google drive and get the URL or you can use Filestore to get the URL image).

You may refer to this HowTo documentation: https://howto.caspio.com/styles/replace-standard-buttons-with-images/

Link to comment
Share on other sites

  • 0

Hello! This can be achieved by adding the image on the App Parameter and use some CSS to call it on the DataPage. Below are the screenshots: 

image.png.533f6549bb980840c27f9352ed53db8f.png

Paste this code at the Footer of your DataPage:

<style>

input[class*="cbSubmitButton"] {

background-image: url("[@app:testimage/]") !important;
background-position:center top !important;
}

</style>

image.png.4f3716aa1431c67d8040fff24b493c56.png

 

Hope this helps!

Link to comment
Share on other sites

  • 0

Hi again. I just tried and I discovered that you can also achieve this by adding/editing the Styles source code.


The image should be accessible online. In this example, I used an image from Google Drive.

1. Right-click on the image you wish to use.
2. Use the 'Get link' option to get only the ID of the image:
3. Go to Styles > Button > and click Source
3. Look for .cbSubmitButton and .cbSubmitButton_hover and paste the following code:

background-image: url(https://drive.google.com/thumbnail?id=15coTVLleIe8A2jf_-QD-u6Rrl3zIYc2V&sz=w100-h100);
width: 120px;
height: 40px;
background-position:center center;


sz -  is for the size of the picture itself.
width and height - are for the size of the button itself
background-position - the position of the image.

image.png.52c1edbd3ed7421632f9265b64b55517.png

 

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
Answer this question...

×   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...
 Share

×
×
  • Create New...