I`ve tried using JavaScript to update the field name: Apply with a Hyperlink. However, for what ever reason the code is not working as expected, thanks to Rajesh Sitaraman for the Code.
Please find below the code for review -
<script type="text/javascript" src="//code.jquery.com/jquery-1.12.0.min.js"></script>
<script type="text/javascript">
var setColumnValue = function (column, linkVal) {
var columnObj = $("input[Title='" + column + "']");
columnObj.val(linkVal);
}
$(document).ready(function() {
setColumnValue('Apply','http://example.com');
});
</script>
Kindly suggest where the code needs refinement.
Also, as an alternate solution tried Calculated columns (value set to Numeric) and provided the required hyperlink information in the formula section. The hyperlink appears in Allviews.aspx
, but not visible in displayform.aspx
or Newform.aspx
.
Based on inputs from other in the community, it seems the viable option is CSR, so trying with JavaScript and need assistance.