https://netsuiteprofessionals.com logo
#suitescript
Title
# suitescript
m

Marygolds3

12/12/2018, 7:00 PM
However, I am not able to get the create script to run off my if statement
v

Vaid

12/12/2018, 7:06 PM
what is the script type ? Can you share more .
m

Marygolds3

12/12/2018, 7:07 PM
AfterSubmit
v

Vaid

12/12/2018, 7:16 PM
function afterSubmit(scriptContext) { var rec = scriptContext.newRecord; var contextType = scriptContext.type; if( not condition ) return; // returns if condition is not met otherwise runs rest of the code }