Hoppa till huvudinnehållet

How to execute RunWorkflowByUrlAndInputs command from Markdown hyperlink?

Kommentarer

4 kommentarer

  • Ken Lyon

    Hi Martin,

     

    It's not possible to run a workflow via a hyperlink. It has to be a button. However, you can use markdown for the button caption. You could make the button appear as a hyperlink using CSS. The Inject CSS activity can be used for this.

     

    In GVH, you could do something like this:

    .gcx-forms-buttonBar1 Button { background: none!important; border: none; padding: 0!important; font-family: arial, sans-serif; color: #069; text-decoration: underline; cursor: pointer; }

    (Where "buttonBar1" is the id of your button bar in the form.)

     

    Note that Geocortex Web uses a different HTML structure. I don't think it includes the IDs of the elements, but perhaps you could select the appropriate button another way.

    0
  • Ken Lyon

    @Martin Simonsen Bjørkenes? , I learned today that Geocortex Web 5.11 introduced the id on the elements, so you can target that as well.

     

    There is also a styleName property which you can set on a Form Element to specify a CSS class to add to it. This is currently supported in GVH but not Geocortex Web. It will be added in an upcoming release.

    0
  • Martin Simonsen Bjørkenes

    Thank you Ken! I was not aware of the markdown capabilities of the button caption. It works just great to display icons on the buttons. I will experiment with injected css as well to see what we can achieve there.

    0
  • Ken Lyon

    You're welcome. Glad I could help!

    0

Du måste logga in om du vill lämna en kommentar.