<@U2S643ARW> I think your looking for a client scr...
# suitescript
m
@rmlakhani I think your looking for a client script and want to use the fieldChanged function
r
Would that work on attaching and unattaching records?
m
When you say attached records are these related records? files attached to a record?
r
Related records
m
Ok now what field do you need to update when?
r
So basically I have a custom record that connects to a calendar event record. When the custom record gets updated at anytime I need to update the field on the calendar event record to reflect the proper number of associated records
The field I'm updating is a counter
a
afterSubmit
looks like what you're looking for
m
If the field is a counter and is only really needed for viewing why not have it set dynamically?
On a before load run a count search and set the field
r
Hmmm I'll give it a shot