Workflow and ServiceDesk Community

 View Only

Position Workflow Forms at Y-Top, X-Center 

Sep 28, 2015 01:25 PM

Original article is posted here.

The two settings Workflow provides for the position of your forms is handled here:

2015-01-12_18-33-25.png

When the checkbox is selected, your form turns out like this:

2015-01-12_18-32-03.png

being both centered vertically as well as horizontally.

If the checkbox is unchecked, your form ends up in the corner:

2015-01-12_18-36-01.png

In many of my forms, the UI flowed much better if the form were actually centered horizontally, but topped-out vertically.

2015-01-12_18-41-25.png

To achieve this effect, leave this box checked:

2015-01-12_18-42-34.png

Then, we’ll add a bit of CSS to the page by adding an IncludeHTML component.  Use aMerge Text component to build the CSS ahead of the form, like so:

2015-01-12_18-43-40.png

The guts of the Merge Text component (the node we're targeting with the id of "tdBorder" is generated automatically by the Workflow form builder, but may not apply to every theme):

2015-01-12_18-44-31.png

And the IncludeHTML component on the form designer:

2015-01-12_18-45-02.png

That should do it.  At runtime, the form should be centered as expected.


Featured Components

IncludeHTML

Merge Text


Further Reading

CSS and Workflow


 

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.