Adding items on top in multifield component

Avatar

Avatar

sagars

Avatar

sagars

sagars

04-06-2020

Whenever a new entry is added in multifield component that will appear at the bottom and we need to manually move each row upwards unless it reaches top. Is there a way to add items on top in multifield component?

View Entire Topic

Avatar

Avatar

khamat_bn

Avatar

khamat_bn

khamat_bn

04-06-2020

Hi @sagars,

Its whenever we adds item in multifield it will be added at bottom only. In order to make it on top We should try to overlay base component and need to add logic to JS for this.

You can overlay multifield component /libs/granite/ui/components/foundation/form/multifield/render.jsp and add custom js logic to add on top. While solution provided by @Nupur_Jain Should work.

Try and let us know the magic after adding js 🙂