Expand my Community achievements bar.

Prepopulating the description of experience fragment to variation

Avatar

Level 4

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.

3 Replies

Avatar

Community Advisor

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



Arun Patidar

Avatar

Level 4

But we cannot set a property with javascript right?

Avatar

Community Advisor

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.



Arun Patidar