- Overview
- Callout
- Complex Scenarios
- Credentials
- Data Service
- Form
- Release notes
- Project compatibility
- Real Time Forms
- Updating form data
- Running forms using JavaScript
- Customizing Forms Using CSS
- Conditional components
- Adding multiple components on the same row in Columns
- Using the Data Table component
- Get File/Folder path
- Reading cell values from a Data Grid component
- Displaying PDF files
- Displaying images in forms
- Scrolling through Data Grids
- Using Dev Tools with forms
- Calculate form component values
- Managing dates in forms
- Opening hyperlinks inside forms
- Displaying a default tab in forms
- Displaying the full label of a component
- Searching long strings in drop-down lists
- About the pre 23.4 Form experience
- Project Compatibility
- Real Time Forms
- Dynamic Checkboxes
- Conditional Dropdowns
- Displaying a Default Tab
- Displaying Images
- Displaying PDF Files
- Displaying the Full Label
- Dynamic HTML Elements
- Managing Dates
- Searching Long Strings in Drop-downs
- Customizing Forms Using Local CSS Files
- Executing Do Block On Checkbox Change
- Customizing Columns Width
- Updating Form Data
- Resetting Collection Data
- Advanced Logic
- Executing Do Block on Dropdown Option Change
- Reading Cell Values From a Data Grid Component
- Conditional Components
- Scrolling Through Data Grid Components
- Using the Grid Component
- Dev Tools
- Calculated Value
- Dynamic Dropdowns
- Switching Tabs With Button Click
- Opening Hyperlinks Inside Form
- FTP
- IPC
- Persistence
- Release notes
- Project compatibility
- About the Persistence activity package
- Bulk Form Designer
- Start Job And Get Reference
- Wait for Job and Resume
- Add Queue Item And Get Reference
- Wait For Queue Item And Resume
- Wait for Form Task and Resume
- Resume After Delay
- Assign Tasks
- Create External Task
- Wait For External Task and Resume
- Complete Task
- Forward Task
- Get Form Tasks
- Get Task Data
- Add Task Comment
- Update Task Labels
- Create App Task
- Wait for App Task and Resume
- Working with App tasks
- Building Your First Form Action
- Advanced Controls for Drop-downs
- Embedding Objects in Form Actions
- Allowing Users to Upload Files to the Storage Bucket
- Adding Advanced Logic Using Java Script
- Setting a Default Tab
- Removing the Delete button from Edit Grid using custom CSS
- Customizing Edit Grid templates
- Using buttons to trigger custom logic
- Using an External Form Layout
- Dynamically expanding form components at runtime
- Sample Workflows
- Automation Ops Pipelines
- System
- Release notes
- About the System activity package
- Project compatibility
- RegEx Builder Wizard
- Is Text Matching
- Find Matching Patterns
- Modify Text
- Modify Date
- Replace Matching Patterns
- Text to Left/Right
- Add Data Column
- Add Data Row
- Build Data Table
- Clear Data Table
- Get Row Item
- Update Row Item
- Merge Data Table
- Output Data Table
- Remove Data Column
- Remove Data Row
- For Each Row in Data Table
- Generate Data Table From Text
- Create List
- Append Item to List
- Read List Item
- Update List Item
- Add Log Fields
- Comment Out / Disabled Activities
- Comment
- Change Type
- Log Message
- Remove Log Fields
- Invoke Com Method
- Format Value
- Lookup Data Table
- Filter Data Table
- Sort Data Table
- Remove Duplicate Rows
- Join Data Tables
- Report Status
- Append Line
- Compress/Zip Files
- Copy File
- Copy Folder
- Create Folder
- Create File
- Delete
- File Exists
- Folder Exists
- Extract/Unzip Files
- Wait for Download
- File Change Trigger
- For Each File in Folder
- For Each Folder in Folder
- Delete File
- Delete Folder
- Move File
- Move Folder
- Rename Folder
- Rename File
- Path Exists
- Read Text File
- Write Text File
- Get File Info
- Get Folder Info
- Get Processes
- Get Username/Password
- Kill Process
- Beep
- Get Environment Folder
- Get Environment Variable
- Invoke Power Shell
- Input Dialog
- Message Box
- Browse for File
- Browse for Folder
- Invoke VBScript
- Process End Trigger
- Process Start Trigger
- File Change Trigger V3
- Trigger Scope
- Repeat Number of Times
- Text to Upper/Lowercase
- Set Environment Variable
- For Each
- Break / Exit Loop
- Retry Scope
- Check True
- Check False
- Workflow Placeholder
- Invoke Workflow File
- Launch Workflow Interactive
- Invoke Code
- Continue / Skip Current
- Multiple Assign
- Invoke Process
- Run Parallel Process
- While
- Do While
- Repeat Number Of Times
- Raise Alert
- Orchestrator HTTP Request
- Get Asset
- Get Credential / Get Orchestrator Credential
- Set Asset
- Set Credential
- Get Jobs
- Get Current Job Info
- Start Job
- Stop Job
- Add Queue Item
- Add Transaction Item
- Delete Queue Items
- Get Queue Items
- Get Transaction Item
- Postpone Transaction Item
- Set Transaction Progress
- Set Transaction Status
- Should Stop
- Wait Queue Item
- Bulk Add Queue Items
- Write Storage Text
- Upload Storage File
- List Storage Files
- Read Storage Text
- Download Storage File
- Delete Storage File
- Custom Input
- Append Item to Collection
- Build Collection
- Collection to Data Table
- Exists in Collection
- Filter Collection
- Merge Collections
- Remove From Collection
- Reset Timer
- Resume Timer
- Start Timer
- Stop Timer
- Timeout Scope
- Manual Trigger
- When New Item Added to Queue
- Stop Local Triggers
- Run Local Triggers
- Repeat Trigger
- Time Trigger
- Disable Local Trigger
- Enable Local Trigger
- Notify Global Variable Changed
- Global Variable Changed Trigger
- Extract Text
- Find and Replace
- Return
- Extract Date and Time from Text
- Change Case for Text
- Add or Subtract from Date
- Download file from URL
- Format Date as Text
- Split Text
- Combine text
- AddDataRow
- AddQueueItem
- AddTransactionItem
- AppendLine
- BulkAddQueueItems
- ClearDataTable
- CompressZipFiles
- CopyFile
- CreateFile
- CreateFolder
- DeleteFileOrFolder
- DeleteQueueItems
- DeleteStorageFile
- DownloadStorageFile
- ExtractUnzipFiles
- FilterDataTable
- GetAsset
- GetCredential
- GetJobs
- GetQueueItem
- GetQueueItems
- GetResourceForLocalPath
- GetRowItem
- GetTransactionItem
- InvokeProcess
- JoinDataTables
- ListStorageFiles
- LookUpDataTable
- MergeDataTable
- MoveFile
- OrchestratorHTTPRequest
- OutputDataTable
- PathExists
- PostponeTransactionItem
- ReadStorageText
- ReadTextFile
- RemoveDataColumn
- RemoveDuplicateRows
- Replace
- SetAsset
- SetCredential
- SetTransactionProgress
- SetTransactionStatus
- SortDataTable
- StartJob
- StopJob
- UpdateRowItem
- UploadStorageFile
- WaitQueueItem
- WriteStorageText
- WriteTextFile
- Testing
- Release notes
- Project compatibility
- About the Testing activity package
- Project Settings
- Add Test Data Queue Item
- Address
- Attach Document
- Bulk Add Test Data Queue Items
- Delete Test Data Queue Items
- Get Test Data Queue Item
- Get Test Data Queue Items
- Given Name
- Last Name
- Random Date
- Random Number
- Random String
- Random Value
- Verify Control Attribute
- Verify Expression
- Verify Expression With Operator
- Verify Range
- Address
- AddTestDataQueueItem
- AttachDocument
- BulkAddTestDataQueueItems
- DeleteTestDataQueueItems
- GetTestDataQueueItem
- GetTestDataQueueItems
- GivenName
- LastName
- RandomDate
- RandomNumber
- RandomString
- RandomValue
- VerifyAreEqual
- VerifyAreNotEqual
- VerifyContains
- VerifyExpression
- VerifyExpressionWithOperator
- VerifyIsGreater
- VerifyIsGreaterOrEqual
- VerifyIsLess
- VerifyIsLessOrEqual
- VerifyIsRegexMatch
- VerifyRange
- Workflow Events
- Workflow Foundation
Embedding Objects in Form Actions
You can design your Form Actions to display images or PDF files, to simply customize the look with logos and icons, or to provide materials that can help your Action Center users in completing the Action.
This feature is available with the Create Form Task activity only.
To embed objects, you use the properties under the Storage section of the Create Form Task activity to link to a Storage Bucket and the Upload Storage File activity to add files.
You can embed any type of object that is supported by storage buckets.
The video below shows how an embedded PDF file behaves in Action Center:
Prerequisites
To use the capabilities of embedding objects in Form Actions, users need the following permissions:
User type |
Permissions |
---|---|
Action Center user |
This user needs the following permissions at folder level: View for Storage Bucket and View for Storage File. |
Robot user |
This user needs the following permissions at folder level: View and Edit for Storage Bucket, and View and Create for Storage File. |
For your Action Center users to experience better performance, we recommend that you embed images that were previously uploaded to a Storage Bucket.
To embed an image in a Form Action:
- Use activities, such as the
Upload Storage File activity, to upload the image to the storage
bucket that is used by the Create Form Task activity. As part of this
step, create a
String
variable to store the path where the file is uploaded, for exampleimagePath
.Important: The storage bucket upload converts the+
sign into a space, which can result in an error during form rendering. - In the Create Form Task
activity, click the ellipsis (
...
) to the right of FormData and add an argument with the_storage
keyword as a suffix:- Name:
image_storage
. - Direction: In.
- Type: String.
- Value:
imagePath
.
Note: The_storage
keyword is used to indicate that this is an object that is available in the activity's storage bucket. For the value, we added the variable where we stored the path to the uploaded image.Tip: For images smaller than 2 KB, such as logos or icons, you can skip this step. In the following step where theimage_storage
argument is used, use theimagePath
variable instead. - Name:
- Add an HTML Element
component and configure it as follows:
- HTML Tag:
div
. - Content:
<img src="{{ data.image_storage }}" />
. This maps the storage file argument to the form component. Using the<img>
tag displays the image in the form. Alternatively, you can use<a src="{{ data.image_storage }}" target=_blank>
to add a link that opens the image in a new window. - Refresh On Change: selected.
Note: You can add links to specific files by referencing them in the<a href="https://link-to-file"></a>
tag. You can ignore any validation errors that appear on the Content field, they do not affect form rendering at runtime. - HTML Tag:
- Convert the
TIFF
files toJPEG
orPNG
before uploading it to a storage bucket, using custom activities inside the workflow that you are working with. - Reference the file inside the
storage bucket, using a
<href>
tag.
To follow the steps of the tutorial and try it out yourself, download the sample workflow.
Embedding a PDF file from a storage bucket is different for regular forms, than for advanced forms. Advanced forms offer an improved rendering performance and advanced usage of the components and their logic. You can create advanced forms by selecting Enable Advanced Forms in the Create Form Task activity.
You can also add PDF files that were uploaded to a storage bucket to a Form Action so that your Action Center users can review it.
To embed a PDF in a regular form task:
- Use activities, such as the
Upload Storage File activity, to upload the PDF file to the storage
bucket that is used by the Create Form Task activity. As part of this
step, create a
String
variable to store the path where the file is uploaded, for exampledocPath
. -
In the Create Form Task activity, click the ellipsis (
...
) to the right of FormData and add an argument with the_storage
keyword as a suffix:- Name:
doc_storage
. - Direction: In.
- Type: String.
-
Value:
docPath
.Important: The_storage
keyword is used to indicate that this is an object that is available inside the activity's storage bucket. For the value, we added the variable where we stored the path to the uploaded PDF file.
- Name:
-
Add an HTML Element component to the form and specify the following:
- HTML Tag:
div
. - Content:
<embed src={{ data.doc_storage }} width="600px" height="500px"></embed>
. - Refresh On Change: cleared.
- HTML Tag:
- Save your changes and close the component window, to return to the Form Designer window.
- Click the Edit JSON icon for the HTML Element.
- Under the Component JSON,
search for
"refreshOn"
and set its value to the form data attribute, so that you have"refreshOn": "doc_storage"
. -
Make sure the text which gets auto-generated for the
_storage
field is available in the form. It can be marked as a hidden field.Important: If you use UiPath.FormActivitiyLibrary v1.1.10, notice that the Component JSON doesn't list the"refreshOn"
option. However, you can manually add the"refreshOn"
key and set its value as mentioned above.
Download this example here.
To embed a PDF in an advanced form task:
- Use activities, such as the
Upload Storage File activity, to upload the PDF file to the storage
bucket that is used by the Create Form Task activity. Specify the path of
the file in the Path field of the Upload Storage File activity.
For this example, input
sample.pdf
. - In the Create Form Task activity, click the ellipsis
(
...
) to the right of FormData and add an argument with the following configurations:- Key:
pdf
. - Direction: In.
- Type: String.
- Value:
"sample.pdf"
.
- Key:
- Add a PDF component to the form and specify the name of the argument
added previously as the Property Name. For this example, specify
pdf
. - Save your changes and close the component window, to return to the Form Designer window.
Download this example here.