How to upload a file to your SharePoint farm and link it to your form?
Last Update: March 06, 2018
This use case shows you how to select and upload files to your SharePoint farm and link them in your form through the files explorer dialog and without the need to do any manual operation and just using linkSelector() function.
Here are the steps on how to do that considering that you have a list with "Hyperlink or Picture" column and its "Format URL" is "hyperlink".
- Open the form in
design mode.
- Add the following to the form design workspace area:

- Select the CV_HyperLink control.
- In the
Rules pane, click on the Add icon to add a new rule, the
Rule Manager dialog will open.

- Add a new rule as follows:
A. Change the
Rule Name as desired.
B. Change the
Rule Type to Action.
C. Keep the
Event Type onClick.
D. In the
Action section, type the following script:
linkSelector(CV_HyperLink)
E. Click on the
Save button to save the rule.
Note: You can use
Assistance Panel to help you adding functions and related parameters, form variables and form controls to
Conditions and/or
Actions sections. - Test the form by clicking on the
Preview button in the
View Group.