This conversation has been locked due to inactivity. Please create a new post.
This conversation has been locked due to inactivity. Please create a new post.
Hi,
i am new to AEM
my question is how to change the button text which is present inside Multi-field by default it is "Add" in AEM(6.4) and "AddField"(AEM(6.3))
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
You can create a custom client library and to have your client library loaded solely for your component dialog, you need to set the property extraClientLibs of your dialog to the category name of the client library you have just created. For more information on how to set extraClientLibs, you can refer to the below link:
AEM Components for the Touch-Optimized UI
Below is the sample js code to change the button text which is present inside Multi-field:
$(function() {
$(document).on("dialog-ready", function(){
$('.coral-Multifield .coral-Button--secondary').find('coral-button-label').html('give any text');
});
});
Hope this helps!
Regards,
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi,
You can create a custom client library and to have your client library loaded solely for your component dialog, you need to set the property extraClientLibs of your dialog to the category name of the client library you have just created. For more information on how to set extraClientLibs, you can refer to the below link:
AEM Components for the Touch-Optimized UI
Below is the sample js code to change the button text which is present inside Multi-field:
$(function() {
$(document).on("dialog-ready", function(){
$('.coral-Multifield .coral-Button--secondary').find('coral-button-label').html('give any text');
});
});
Hope this helps!
Regards,
Views
Replies
Total Likes
Great replies.
Views
Replies
Total Likes
For general AEM mutli-field info - see these docs:
1 - Scott's Digital Community: Creating a HTL Repeating Data Set 6.3 Component that uses Sling Models
2 - Building Experience Manager Components using Granite/Coral Resource Types
These both show use of granite/ui/components/coral/foundation/form/multifield
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies