This page provides details of the properties for the -include_action_url | _action_url | nopanel | true |
action node. These are part of actionflows.Overview |
---|
Open URL Node PropertiesImage Modified Use a Insert excerpt |
---|
| _action_url |
---|
| _action_url |
---|
nopanel | true |
---|
| node in an actionflow to open a URL in a new tab once the actionflow has completed. The node can also be used to send emails and call telephone numbers. |
Live Search |
---|
spaceKey | @self |
---|
additional | none |
---|
placeholder | Search all help pages |
---|
type | page |
---|
|
Panel |
---|
borderColor | #00374F |
---|
titleColor | white |
---|
titleBGColor | #00374F |
---|
borderStyle | solid |
---|
title | Sections on this page |
---|
|
Table of Contents |
---|
maxLevel | 3 |
---|
indent | 12px |
---|
style | none |
---|
|
|
Examples
Opening a webpage
To open a webpage the node needs a valid URL to be mapped to the URL attribute. The format of the URL must be
Code Block |
---|
'https://www.url.com' |
If the URL to open is being provided by a user, it is recommended that a calculate node is used to reformat the value. For example the following switch statement can be used:
Code Block |
---|
//for URL's to open correctly they must start with https://www.
switch(
[startsWith(in.URL, "https://"),
in.URL
],
[startsWith(in.URL, "www."),
"https://" + in.URL
],
"https://www." + in.URL
) |
Image Removed
Image Removed
Calling a telephone number
The Open URL node can also be used to call a telephone number. A valid telephone number must be mapped to the URL attribute in the format:
Code Block |
---|
'callto:' + in.TelephoneNumber |
The function 'callto:' causes the browser to open an appropriate VoIP client (e.g. Microsoft Teams) which then calls the number provided.
Image Removed
Sending an email
In a similar manner to calling a telephone number, the Open URL node can be used to send an email. A valid email address must be mapped to the URL attribute in the format:
Code Block |
---|
'mailto:' + in.EmailAddress |
The function 'mailto:' causes the browser to open an appropriate email program (e.g. Outlook) and sets the email address to the one provided.
Image Removed
Adding an email subject, cc, bcc and body text
It is also possible to populate the email subject, cc, bcc and body text by altering the format of the URL expression.
Subject
Code Block |
---|
'mailto:' + in.EmailAddress + "?subject=" + in.Subject
//or
'mailto:' + in.EmailAddress + "?subject=Email Subject" |
cc
Code Block |
---|
'mailto:' + in.EmailAddress + "?cc=" + in.cc1 + "," + in.cc2
//or
'mailto:' + in.EmailAddress + "?cc=someoneelse@email.com, another@email.com" |
bcc
Code Block |
---|
'mailto:' + in.EmailAddress + "?bcc=" + in.cc1 + "," + in.cc2
//or
'mailto:' + in.EmailAddress + "?bcc=someoneelse@email.com, another@email.com" |
Body text
Code Block |
---|
'mailto:' + in.EmailAddress + "?body=" + in.Body
//or
'mailto:' + in.EmailAddress + "?body=This is the body of the email." |
Adding a new line in the body
e.g.
This is the body of the email.
This is the second line of the body of the email.
Code Block |
---|
// use %0d%0a to start a new line
'mailto:' + in.EmailAddress + "?body=This is the body of the email.%0d%0aThis is the second line of the body of the email." |
Adding subject, cc, bcc and body
Code Block |
---|
"mailto: " + in.EmailAddress + "?cc=" + in.cc1 + "," + in.cc2 + "&bcc=" + in.bcc + "&subject=" + in.Subject + "&body=" + in.Body |
Worked ExampleFor full details on how to create an Open URL node, including worked examples, see Open URL Action Configuration. Insert excerpt |
---|
| _property_tabs |
---|
| _property_tabs |
---|
name | basic-h |
---|
nopanel | true |
---|
|
Insert excerpt |
---|
| _property_toolbar |
---|
| _property_toolbar |
---|
nopanel | true |
---|
|
Insert excerpt |
---|
| _parent |
---|
| _parent |
---|
nopanel | true |
---|
|
Basic SettingsField | Description |
---|
Name | Enter the name for the action node. | Insert excerpt |
---|
| _actionflow_properties |
---|
| _actionflow_properties |
---|
name | show-name |
---|
nopanel | true |
---|
|
| Insert excerpt |
---|
| _actionflow_properties |
---|
| _actionflow_properties |
---|
name | show-text |
---|
nopanel | true |
---|
|
|
AttributesEach open |
url 3 the following attributes which can be mapped to. |
URLThe url of the resource to be opened. This can also be the mailto: and callto: functions. See above examples. | windowName (optional) | String | Name of the Optionally specify the browser window, <iframe> or tab into which to load the specified resource. If no name is provided, PhixFlow opens a new browser window |
|
will always be opened should must not contain whitespace. |
|
windowFeatures (optional)CommaOptionally specify a comma-separated list of window features in the form: |
|
, or - for boolean features, just
name .
These features include options such as: - the window's default size and position
|
|
, - whether or not to open a minimal popup
For details about specifying window |
|
, and so forth. See Window Features for more information. Insert excerpt |
---|
_property_tabs | _property_tabs | name | access-h |
---|
nopanel | truefeatures, see the developer.mozilla.org page Window.open() . | URL | String | Specify the URL of the resource to be opened. This can also be the mailto: and callto: functions, as shown in the examples above. |
|
accessaccess