I want my beforeSubmit function to source the Pric...
# ask-stanley-ai
a
I want my beforeSubmit function to source the Price Level, Rate, and Amount fields as it does in dynamic mode, but I'm doing this from a beforeSubmit entry point triggered by web store creating a Sales Order. This is to overcome the problem where all of those fields appear empty when I add a line with insertLine and setSublistValue for Item and Quantity only. Can I avoid having to look up the Rate with a search API call by using selectLine and setCurrentSublistValue instead? I wonder if it's missing things because it's a non-inventory item we use for taxes. When I explicitly set the "price" column to 1, then the error message changes from please enter value for Amount, to please enter value(s) for Tax Code. Would this all go away magically if these columns were in the Website Setup's Field Sets? I don't like putting fields in there because fields in the Field Sets get locked so we can't edit or configure them. But maybe that only matters for Custom fields?