I want to create a field that is text on edit but reads as a URL. The text would be something like this:
Patient1234BRADLEY
The URL should prepend some text to become:
O:PatientFoldersPatient1234BRADLEY
I’ve got the expanded URL and have figured out how to display text on edit and the longer URL on read, but I just don’t know how to turn it into a link.
var field = arguments[0],
value = arguments[1];
if (field.mode === ‘read’) {
var URLValue = 'C:\PatientFolders' + value;
URLValue = URLValue.replace(//g, ‘/’);
skuid.ui.fieldRenderers[field.metadata.displaytype]field.mode;
}
else {
skuid.ui.fieldRenderers[field.metadata.displaytype]field.mode;
}
Question
Display text as clickable link
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.