Test elementFormDefault with dynamic code