[Cookbook][Dynamic Form Modification] Fix sample code