Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
8 replies
Subscribers
7 subscribers
Views
3776 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Is it possible to configure an input field so that when a user enters a url it w
michaelb40
over 10 years ago
Is it possible to configure an input field so that when a user enters a url it will be a clickable link?
OriginalPostID-141151
OriginalPostID-141151
Discussion posts and replies are publicly visible
0
Stefan Helzle
A Score Level 3
over 10 years ago
Not directly, but you could put a text under it that would display the entered link.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Ruth Ogala
Appian Employee
over 10 years ago
Hi Michael, one way you might be able to do this is by using the a!linkField() function.
Ex. a!linkField(
links:a!safeLink(
label:"User's entered url",
uri:ri!uri
)
)
Where ri!uri is the entered url.
Note that the user will have to enter the url in a text input field first and then you can dynamically show the link to the url using the expression above.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
michaelb40
over 10 years ago
Hi Ruth! that would do it - thanks!!!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Ruth Ogala
Appian Employee
over 10 years ago
Sure, no problem! Also, keep in mind that the uri must be 'valid' for this to work. See this link as a guide;
forum.appian.com/.../Data_Types.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
michaelb40
over 10 years ago
Worked like a charm - thanks Ruth!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
michaelb40
over 10 years ago
Hi Ruth, ok I spoke to soon - it worked fine in the SAIL Interface, but not in Tempo. I get an error that there is an expression evaluation error in my rule, that it is not a permitted URI under the configured security rules and cannot be cast to safeUri. My code is as follows:
a!textField(
label: "Sample Report URL",
instructions: "Enter the URL for the sample report here, in
http://url.com
format.",
labelPosition: "ADJACENT",
saveInto: ri!dqrr_dataQualityReportRequestCDT.dqaFulfillmentURL
),
a!linkField(
links:a!safeLink(
label:"Click here to access the URL",
uri:ri!dqrr_dataQualityReportRequestCDT.dqaFulfillmentURL)
),
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Ruth Ogala
Appian Employee
over 10 years ago
Hey Michael, it doesn't seem like you are validating against a null value for your rule input. If you have the Appian Common Objects in your environment, and assuming the CDT itself is not null, try this:
a!textField(
label: "Sample Report URL",
instructions: "Enter the URL for the sample report here, in
http://url.com
format.",
labelPosition: "ADJACENT",
saveInto: ri!dqrr_dataQualityReportRequestCDT.dqaFulfillmentURL
),
if(rule!APN_isEmpty(ri!dqrr_dataQualityReportRequestCDT.dqaFulfillmentURL),{},
a!linkField(
links:a!safeLink(
label:"Click here to access the URL",
uri:ri!dqrr_dataQualityReportRequestCDT.dqaFulfillmentURL)
)
).
Also note you might need to validate the URL entered.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
michaelb40
over 10 years ago
yep that did it Ruth, thanks again!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel