Show field value inside HTML
Posted: 24 Sep 2019
Hello,
This is probably very easy, but i can't make it work
I need to show some of the values from the fields inside the text on the screen. I am trying to do it with HTML but can't make it work.
I've put this script inside html:
<script>
function myFunction() {
var myplant = document.getElementById('Plant_Num_Text');
document.getElementById("myplant").innerText = fd.field("Plant_Num_Text").value();
}
</script>
and this inside the text portion to show field: <span id="myplant"/>
field name is Plant_Num_Text.
This is probably very easy, but i can't make it work
I need to show some of the values from the fields inside the text on the screen. I am trying to do it with HTML but can't make it work.
I've put this script inside html:
<script>
function myFunction() {
var myplant = document.getElementById('Plant_Num_Text');
document.getElementById("myplant").innerText = fd.field("Plant_Num_Text").value();
}
</script>
and this inside the text portion to show field: <span id="myplant"/>
field name is Plant_Num_Text.