Action Settings

Each wizard can have multiple actions. Each action has its own settings.

Add, remove and re-arrange

You can add, remove and re-arrange actions using the controls below “Actions”. Click, hold and drag to re-arrange the action order. The text in (brackets) is the action id (e.g. “action_1”). You may need to know that for some Conditional fields.

Type

Create Topic

This creates a new topic with given inputs. A title and post must be present for the action to be performed.

  • Title. Conditional field with alternatives.

  • Post. You can either select a wizard field to take the user’s input in that field as the post, or use the "Post Builder.

  • Category. Conditional field with alternatives.

  • Tags. Conditional field with alternatives.

  • Advanced. Please use these with care

    • Custom. A map input that will add custom fields to the created topic or post.

      • Use topic.field_name to add custom fields to the topic
      • Use field_name to add custom fields to the first post
    • Redirect. If checked, the user will not be automatically redirected to the created topic when the wizard completes.

Send Message

This creates a new private message topic with given inputs. A title, post and recipient must be present for the action to be performed.

  • Title. Conditional field with alternatives.

  • Post. You can either select a wizard field to take the user’s input in that field as the post, or use the "Post Builder.

  • Recipient. Conditional field with alternatives.

  • Advanced. Please use these with care

    • Custom. A map input that will add custom fields to the created topic or post.

      • Use topic.field_name to add custom fields to the topic
      • Use field_name to add custom fields to the first post
    • Redirect. If checked, the user will not be automatically redirected to the created message when the wizard completes

Open Composer

This opens a composer with the given inputs. The inputs are the same as “Create Topic”, however Custom Fields and Redirect are not supported. If you are using this action with other actions that redirect the user on wizard completion, it needs to be the last action for its redirect to take precedence (see further “Run After” below)

Update Profile

This updates the user’s profile using text inputs or wizard fields. Specific inputs are required for specific fields:

  • Avatar: Upload field
  • Bio Raw: Text type field, selection or input
  • Card Background: Upload field
  • Date of Birth: Text type field, selection or input and must be a valid date.
  • Locale: Text type field, selection or input and must be a supported locale.
  • Location: Text type field, selection or input
  • Name: Text type field, selection or input
  • Profile Background: Upload field
  • Website: Text type field, selection or input
  • Email Level: Integer: 0-2 (inclusive)
  • Email Messages Level: Integer: 0-2 (inclusive)
  • Email Digests: Boolean

Advanced. Please use these with care

  • Custom. A map input that will add custom fields to the user. Enter the custom field name as the key.

Add to Group

Conditional field that adds the user to group(s).

Route To

Routes the user to the specified url. Requires an absolute url (with a protocol).

Watch Categories

Will set up a user’s Notification Level for a set of Categories. You can choose to expose a Category field for the pick list, determine the Notification Level applied for those that are chosen, and also choose to Mute the remaining, unpicked Categories or not. You can set this to a pre-determined number or expose this as a Checkbox field choice to the user. An example setup below:

Run After

Determines when the action will run. Unless there is a specific goal, you should run the action on wizard completion. For actions set to run on the same step or on wizard completion, the order of actions is the order the actions appear in the action list below “Actions”.

If there are multiple actions with automatic redirects, the last action with an automatic redirect will determine where the user is redirected to after the wizard completes. All other aspects of the other actions will be performed as normal (just without the redirect).

1 Like

How would I create group dropdown where you choose a singular group to join?

A post was merged into an existing topic: Field Interpolation

@Angus, is there a way to use CWP produce a Topic which includes images and/or links?

I’ve tried an upload field, but can’t insert that into a Post Builder (just get code). I’ve tried composer fields, but can’t add images or links.

I’ve also tried a composer action, but that seems a bit glitched (doesn’t display all my content / fields - see https://healthforum.nz/w/images-in-post for a demonstration). And it means that I have to allow the user write access to the category, which I don’t want to do.

My use-case / situation is making structured clinical case reports; this is very similar to making bug reports and the like here on thepavillion.io

Yes, you can add both images and links. This is more of an “Interpolation” question, i.e. how to interpolate the input data into the post builder.

Adding an image is explained as an Example here: https://thepavilion.io/t/field-interpolation/2830#example.

Adding a link can be handled by:

  1. Add a url field (input)

  2. Interpolate the url into the markup like so: ![text](w{step_1_field_1})

1 Like

Ah, so that is what Interpolation is, eh? I wondered what you were on about before. Sorted after some fiddling with the sentax a bit. Thank you!