Prepopulate field while creating new record

Hi,

How can we prepopulate any field while we click on create button in browse screen.
I have created an entity listener (below mentioned) but got no luck.

@Component("loa_UnderwritersInsEntityListener")
   public class UnderwritersInsEntityListener implements BeforeInsertEntityListener<UnderwritersIns> {

    @Override
    public void onBeforeInsert(UnderwritersIns entity, EntityManager entityManager) {
   		entity.setCoverage("This is a coverage sample comment");    	
    }

}

Thanks,
Saurabh

I Do this Kind of stuff With overriding the initNewItem function in the edit screen.

Daniel

1 Like

Hi,

You have several options for assigning initial values. You can read about them in the docs.

1 Like

Thank You It worked for me.