Hi. So there's a custom field in our transactions ...
# suitescript
k
Hi. So there's a custom field in our transactions and the name starts with "custpage_". However it only shows when in view mode, and not in edit/create mode. I wanted to get its field value, i tried a user event script after submit, but it returns undefined. Is there a way to do it?
b
its a temporary field generated by another user event script
expect to have a full understanding of that script before using that field
k
yup, that explains its naming. I'm not really going to change something on that field, my plan was to just copy the value to another custom field so as not to affect anything from the user event script it originated.
b
there may not be a field to copy in the context you are running your own script in
the script that generated the field may not actually run for whatever your own script is doing
k
yeah you're most likely right. Hmm, question though, am I not sure that the original UE script ran since I can see the field and value when in view mode? Would i then be able to get the value at that point? Sorry lots of question, I might hit a spark with one of these.
b
depends on what type of script you are writing