Highlighted

Prepopulating the description of experience fragment to variation

deepakt84913413

20-05-2019

Hi,

I am trying to prepopulate the description field of the experience fragment into variation in 6.3. Is there an out of the box way to do this?

Thanks for the help.

Replies

Highlighted

Arun_Patidar

MVP

20-05-2019

Hi,

There is no way to do that OOTB but you can do it using javascript as soon as variant created you can make an ajax request at

var path = Granite.author.ContentFrame.contentURL+"/jcr:content.json";

and read the jcr:description key and set the variations description field.

e.g. http://localhost:4502/content/dam/mfHTL63/title/jcr:content.json

Screenshot 2019-05-21 at 1.21.47 AM.png

Highlighted

Arun_Patidar

MVP

21-05-2019

you can do but in your case variation is not yet created, so fill variation description with master description variation.

I don't think so if you need to create property for that.