Hello @zzy2892
Adding custom code requires adding the code to a specified location, rather than modifying it directly in the generated screen file. This is because the corresponding screen file is regenerated every time code is generated. You can refer to the documentation at https://docs.mcuxpresso.nxp.com/guiguider/latest/UG/advanced_usage.html#custom-code-integration
BR