Show field value inside HTML
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.
No, it's just a a text portion.... for example: "We have reviewed the financial statements for <Plant>." And there is a long paragraph where Plant is used several times, so the idea is that people populate "Plant" field along with the others and when they print out the form that text looks like just like a text piece with custom plant's name for each item.
Katy,
In 'Plain text' and 'Rich text' controls you can add field value by putting the field's internal name in square braces: [Title].
Your example: "We have reviewed the financial statements for [Plant_Num_Text]."
Note that it will work only if the data is saved.
In 'Plain text' and 'Rich text' controls you can add field value by putting the field's internal name in square braces: [Title].
Your example: "We have reviewed the financial statements for [Plant_Num_Text]."
Note that it will work only if the data is saved.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 8 guests