How do I update PDFViewCtrl to reflect a change in field value?

Q:

When trying to change value of a checkbox by code, the appearance does not refresh.

For example in iOS:
 
TRNField *field = [self.docToOpen GetField:@"SMP"];
    
[field SetFlag:e_read_only value:NO];
[field SetValueWithBool:YES];

[field RefreshAppearance];

A:

After you call RefreshAppearance, you should call one of the variants of PDFViewCtrl’s Update method:

https://www.pdftron.com/pdfnet/mobile/docs/iOS/src/interface_p_d_f_view_ctrl.html#a58a6fd7b27aaaed7807361b2a02978c9
https://www.pdftron.com/pdfnet/mobile/docs/Android/pdftron/PDF/PDFViewCtrl.html#update%28%29