Live ListSelect Filtering with Javascript

{{7/16/2015 Workflow 7.6 update — review this update for new info on this post.}}

For a project I’m developing that involves interactive reports, I needed the ability to filter results based on user input.  I didn’t want to do the usual – type a value into a TextBox, click a “filter” or “search” Button and then have Workflow run a filter and reload the entire form with the new result set.

With the help of Google and a number of great reference articles, I was able to piece together a bit of Javascript that results in a very slick and seamless ListSelect filter.

listfilter

Continue reading

Mimicking Form Anchors with the scrollto() Method

In response to a forum request at Symantec Connect, I came up with a method of mimicking the functionality of an html anchor tag on a Workflow form.  What this does, functionally, is scrolls a form to a specific position.

scrollto

Continue reading

Highlight Element by CheckBox State

{{7/16/2015 Workflow 7.6 update — review this update for new info on this post.}}

In response to a post on Symantec Connect, I built a quick Workflow demo project to show how to use CSS and Javascript to highlight a required section panel when a CheckBox is checked.

highlightpaneldemo

Continue reading

Input Range Sliders

I had a need for a “Duration” field, and liked the idea of (instead of using a masked textbox or two dates (start and end)) using range sliders to increment the duration parts of the value.

sliders

Continue reading

Workflow Short – pageLoad() and Dynamic Update Panels

A quick note on using DynamicUpdatePanels and body onload events.  The update panels, when updated, do not trigger the body’s onload event.  To get past this, we can use the form’s “Script” section and use the native function pageLoad() to run the actions we want to have happen.

Continue reading

Workflow Short – Dynamically Size a Workflow Webform

Treat this entry as a proof-of-concept, as I just discovered it today, and haven’t thoroughly tested the potential or outcomes of this method.

Using javascript, we’re able to dynamically resize a form to provide more real-estate when required.

resizeform

Continue reading

Workflow Short – oninput Event

As I don’t have a lot of experience with Javascript outside of Workflow, I was, prior to yesterday, unfamiliar with the “oninput” function.  As it turns out, it’s a bit better for most of the value validations than what I was using previously (onchange).  Here’s a quick rundown on how to make use of this feature.

oninput

Much like the method for adding the “placeholder” attribute, and similar to the onchange event, we’re going to need to use javascript to add the “oninput” event attribute to an element on body onload.

Continue reading