Workflow Soluiton

 View Only
  • 1.  Include CSS in a web form workflow

    Posted Sep 04, 2013 02:12 PM

    I have a CSS file that I would like to use in my workflow. I'm trying to get my workflow to use it. I'm using the includeHTML component, but I don't know what to put in the "Text to Include" section. Do I put the file path to the CSS file in there?

    I guess what I'm asking is how to use this component if I already have a working CSS file.



  • 2.  RE: Include CSS in a web form workflow
    Best Answer

    Posted Sep 04, 2013 02:45 PM

    Add the CSS file as a resource to your project so it can be published with the project on deploy.

    As far as IncludeHTML comp, to try and use it with this scenario, you probably just need to put a LINK tag in there. LINK tags look like this:

    <LINK rel="stylesheet" type="text/css" href="<NAME OF CSS FILE>"></LINK>

    You'd want to add this as text vs. a URL.

    I'm testing this out now to see if it works. But the more elegant solution would be to use a theme (Workflow's application of stylesheets). You can use one of several themes that come with the product or create your own in the Theme Editor (which will also convert a CSS to an xTheme, if you need it). Then you can just flip the theme on the form.

     

     



  • 3.  RE: Include CSS in a web form workflow

    Posted Sep 04, 2013 04:54 PM

    How do I get the theme editor to convert a CSS file into an xTheme?



  • 4.  RE: Include CSS in a web form workflow

    Posted Sep 04, 2013 05:16 PM

    Just select File - Open, and select your .css. Then it can be saved as an xTheme. (note this will not modify the css at all, it basically just creates an xtheme based on the CSS)



  • 5.  RE: Include CSS in a web form workflow

    Posted Sep 05, 2013 09:58 AM

    Thank you