Radio Sublist Field – FieldChanged Event

Is there any trick to getting a Radio field on a List Suitelet Sublist to fire a client FieldChanged event when sublist value is changed?

The value alternates between sublist lines as expected, but it does not seem to get recognized in the fieldChanged entry point on the client script at all.


Intermediate Asked on October 11, 2019 in SuiteScript.
Add Comment
1 Answer(s)

Fyi if anyone else runs into this, this solution seems to work putting in pageInit of the client script :

// Update radio buttons to fire fieldChanged event
$(‘input[name=custpage_originalid]’).each(function (index) {
    $(this).attr(‘id’, ‘custpage_originalid’ + (index + 1));

Stepping into more of the base NetSuite code that relies on the DOM Form, it cannot “find” the radio sublist field since they do not have an id and additionally they do not have a suffix of the sublistLine number. Just updating their id attribute to match other functioning sublist fields seems to make them then behave as expected.

Intermediate Answered on October 14, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor