Question

Photo of Jeremy Turgeon

0

Change Workflow Default Settings

We have a workflow on a public site which has two fields, a Day of the Week picker and Time.  The default day is Sunday and time is blank.  We'd like to have links on other pages that, when clicked on, direct users to this workflow but change the default settings so the day and time are pre-populated with the value they want.

  • Photo of Rock RMS

    0

    The 'Activate Workflow' block can be used for this. This is a block that has no user interface but will evaluate querystring values, create a workflow instance, set attribute values (based on query string parameters) and then redirect to a page with the Workflow Entry block.  For example, if the block was on page 777, you'd activate a workflow and set attribute value by using a url like this:

    http://www.mychurch.com/page/777?WorkflowTypeId=1&WorkflowName=New Request&DayOfWeek=1&Time=0

    It looks for any workflow attributes on the specified workflow type that have the same key as the querystring parameter, and if so, sets the value. For this to work, the workflow does need to be persisted automatically, or by an action prior to the first user entry form action.  If it isn't, the block cannot pass a workflow id to the entry block.

  • Photo of Don Smallman

    0

    Jeremy, just curious to see what you are using this for?  Can I get a link to see it?

    Thanks!
    Don