RE: Create URL Field in Contact Form with a dynamically hyperlink
The PCF looks perfect. Thanks so much.
I have little experience of PCF, after read related docs, I have several questions, can you please gave me explanations?
1. Can I deploy the PCF control in production environment?
2. If the owner/author of the PCF delete his/her control, is there any impact to the corresponding control in our system?
3. If the PCF control updated, do I need to update it in our system?
Other questions, I want to insert a HTML Webresource in Contact form's header to display text hyperlink, that is 'Go to Client' with the dynamically populated ClintID. I try to write some code (borrow your JS Code) as below, but it is not work. Can you please point out which places are not correct. Thanks in advance.
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title></title>
<script>
function setUrl (executionContext) {
var formContext = executionContext.getFormContext();
var clindId = form.getAttribute("new_clindid").getValue();
var fullUrl = "";
fullUrl = "sysco.mycompany.com/" + clindId + "/dashboard";
}
</script>
</head>
<body>
<p>CLIENT</p>
<a href = "fullUrl">Go to Client</a>
</body>
</html>