However, I am not able to get the create script to...
# suitescript
m
However, I am not able to get the create script to run off my if statement
v
what is the script type ? Can you share more .
m
AfterSubmit
v
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 }