Hello,
How can I change a value directly in the SolutionsDetailsBox when the page loads? I just want to change the displayed value of the field (I mean simply modify the html code of the page), not the real value of the field in the database.
I think it's in the Custom Content of the SolutionsDetailsBox. I tried the following script but that does not work.
<script>
window.attachEvent('onload', updaterating);
function updaterating()
{
CRM.AddContent('<' + 'script> document.getElementById("_Datasoln_yourrate").innerHTML = 12; <' + '/script>');
});
</script>
This script is for my tests. In fact I want to put the result of an SQL request but it is not the problem here.
For information: in the html it is named "_Datasoln_yourrate". In the database, the field is named "soln_yourrate" and it is an integer.
Extract of the html code of the page: