Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and 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:
0