Hello, does anybody know how to get the selected v...
# suitescript
m
Hello, does anybody know how to get the selected value from list in advance pdf? I try to get the selected value from Sales Order in Customer Deposit form.
<td>${(record.salesorder: selected).text()};</td>
I try using this code but didn't work
j
Here's NetSuite's documentation on what's available in the template. https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/SBADVTemplates_253014937.html
I believe your code should be something like <td>${record.salesorder}</td>
m
Sorry my explanation didn't clear enough, I want to get this Sales Order value from Customer Deposit but without "Sales Order" text, so it only show: "#SC/GAM-004/09/22".
n
If the text in that field is the same everytime you could use replace to replace it with "". https://freemarker.apache.org/docs/ref_builtins_string.html#ref_builtin_replace i.e if it's always prefixed with "Sales Order"
m
Thanks for the suggestion