changing the button background to a picture - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

changing the button background to a picture

Last post 09-07-2009 10:50 AM by alvarohv. 22 replies.
Page 2 of 2 (23 items) < Previous 1 2
Sort Posts: Previous Next
  • 04-27-2009 03:04 AM In reply to

    • cywan
    • Top 500 Contributor
    • Joined on 04-27-2009
    • Posts 32

    Re: changing the button background to a picture

    Hi,

    I able to change the background image button but when i publish to Sharepoint i cant see the image and when i open the form in design mode, i able to see the image.

     I have created a picture library in Sharepoint to store the images and thought it well help for the form to display the image but it still the same on the missing image.

    May i know what is wrong here and please help?

    Thanks. 

  • 04-27-2009 03:35 AM In reply to

    • Elena
    • Not Ranked
      Female
    • Joined on 05-15-2008
    • Russia
    • Posts 14

    Re: changing the button background to a picture

    Hi!

    See the previous post: "We can do in a same way, add the background image url for <table>tag of repeating table in view.xsl file."

    This is the only way i know.

     

    Elena

  • 04-27-2009 03:37 AM In reply to

    Re: changing the button background to a picture

    Hi

    Image buttons will not work for IPFS forms.

    Madhuri
    http://www.ggktech.com
  • 04-27-2009 06:23 PM In reply to

    • cywan
    • Top 500 Contributor
    • Joined on 04-27-2009
    • Posts 32

    Re: changing the button background to a picture

    Hi,

    This is where i have added the image into the tag for the button background in the view.xsl :

    <input class="langFont" title="" style="BORDER-RIGHT: medium none; BACKGROUND-POSITION: left top; BORDER-TOP: medium none; FONT-SIZE: x-small; BACKGROUND-IMAGE: url(cancelbutton.png); BORDER-LEFT: medium none; WIDTH: 74px; BORDER-BOTTOM: medium none; BACKGROUND-REPEAT: no-repeat; HEIGHT: 23px" type="button" size="1" xd:xctname="Button" xd:CtrlId="CTRL441_5" tabIndex="0"/>

    It still not show on the Sharepoint after deploy. If button image background not work in InfoPath then is there a way to make it show in web-browser form?

    Thanks.

     

     

  • 05-07-2009 07:57 PM In reply to

    Re: changing the button background to a picture

    Hi, if you really need an image on your button, you may try this.

    1. Insert the button image on your form, not add the image to Tool > Resource files.
    2. Modify view1.xsl to overlap the button on top of the image by setting the css style of the button/image.
    3. Set the button border to none.
    4. Set the button backgound-color to transparent.
    5. MUST set many '&#160;' (not '&nbsp;') to the button value attribute (if you leave it empty, then this button is not clickable);
    6. Save the changes, open manifest.xsf and preview the form, you should see your image and you can click on it.
    7. Publish your form.
    8. PROBLEM: the button is still displayed next to the image, even though I've set it to overlap on top of the image :( nothing happen if I click on the image, but the form is submitted if I click on the space next to the image :(

    Please let me know if you have to solution for my problem.

    Thanks.

  • 05-08-2009 02:45 AM In reply to

    • cywan
    • Top 500 Contributor
    • Joined on 04-27-2009
    • Posts 32

    Re: changing the button background to a picture

    Hi funnyfenny,

    did u change to this :

    style="BORDER-RIGHT: medium none; BACKGROUND-POSITION: left top; BORDER-TOP: medium none; FONT-SIZE: x-small; BACKGROUND-IMAGE: url(yourimage.); BORDER-LEFT: medium none; WIDTH: 74px; BORDER-BOTTOM: medium none; BACKGROUND-REPEAT: no-repeat; HEIGHT: 23p">

     May i know where did you publish your form? Have your try to publish your form in web browser?

     Regards cywan

  • 05-12-2009 05:36 PM In reply to

    Re: changing the button background to a picture

    Yes, I did.
    I published my form to SharePoint site.

    According to Madhuri, this image button will not works at SharePoint InfoPath Form Service.

  • 09-07-2009 10:50 AM In reply to

    Re: changing the button background to a picture

    Why images buttons does not work in IPFS forms??

    Álvaro Hernández
    Application Developer
    Micra Consulting (an Intertec Company)
Page 2 of 2 (23 items) < Previous 1 2
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.