I have a hidden field (free form text) I use on di...
# suitescript
a
I have a hidden field (free form text) I use on different transaction forms. I want this field to always start off empty and various actions cause it to get populated. I have found when a certain person creates the transaction, that field has already been set. I see that if I make a copy of a transaction, (using Netusite's built in make a copy feature) those field values also get copied. Is there anyway to prevent this to make sure it always starts off blank? My solution was to make a user event on Event.Type Create and always set that field blank, but I feel like that is a bandaid for an improper setup.
s
You need the Event Type of COPY, not CREATE to clear it out in the case of COPY. I have done this before as well for custom fields that you need to be blanked out on COPY.
a
Are you sure? I tried on Create and it worked. My question was really is there a way in the UI to set this up that's defaulted to be blank and not dependent on User Event Scripts to fix things up.
s
Well the COPY button triggers UE type of COPY, so just handling on create will not clear it out. I don't think there is a field setting that overrides what COPY does.