Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Variables in getRecordAttribute ID
Does anyone know the proper way to format the getRecordAttribute so that it will read a variable in the ID field? I am trying to write a bit of script that retreives a custom value from a record type. This value is a variable. Here is what I have now, I have tried several things and nothing works. zipcode is the variable I am testing.
<script type="text/javascript">
function getPreZip(zip) {
var zipcode = 95236;
var zone = <%=getRecordAttribute('4',zipcode,'custrecordzone')%>;
alert(zone);
}
</script>
I have also tried quoting the zipcode as a string: