Content Fragment - set the input fields through ajax call

Avatar

Avatar

ajayk62689618

Avatar

ajayk62689618

ajayk62689618

26-08-2020

Hi,

 

I have few input fields and created button(converted single line text to button) on content fragment.

When i click button on content fragment, the input fields are updated through ajax call response data, But when i am trying to save the updated values that is present in the input fields via default save button on the TOP is not updating to Content fragment.

 

If i edit any input fields in content fragment, then newly updated values are saved to content fragment via SAVE button on top.

 

Is there a way to customize the save action ?

 

Thank you.

AEM 6.4 content fragments

Accepted Solutions (0)

Answers (4)

Answers (4)

Avatar

Avatar

Suraj_Kamdi

MVP

Avatar

Suraj_Kamdi

MVP

Suraj_Kamdi
MVP

27-08-2020

@ajayk62689618 Can you please provide a sample code snippet or any screenshot related to your issue ? 

It will be really helpful to understand the issue.

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

6.0K

Likes

1.1K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

6.0K

Likes

1.1K

Correct Reply

1.1K
kautuk_sahni
Community Manager

27-08-2020

@Suraj_Kamdi @surabhikatiyar @nidhip010816  request your assists to this question.

Avatar

Avatar

NehaCMS

Avatar

NehaCMS

NehaCMS

30-01-2021

Thanks @Suraj_Kamdi for update above. As this is not available OOTB , can similar be customized. Any event that can be referred while opening content fragment and prepopulatingvalue.

cc:- @ajayk62689618 @kautuk_sahni 

Avatar

Avatar

NehaCMS

Avatar

NehaCMS

NehaCMS

29-01-2021

Hi @ajayk62689618 @Suraj_Kamdi @kautuk_sahni - Wanted to check if it is possible to prepopulate a text field as readonly while creating a content fragment. For example Content Fragment A when I create should have value in field A as S1 and next content fragment i create should read already save content fragment property field A value and prepopulate content fragment B field A value as S2.