Has anyone been able to successfully change the "add a new option" text when you have a field that allows users to add an option? We'd like to customize this to the field itself, like "add a new medication", "add a new patient", etc.
Worked for me too! Thanks! Question... how do I retain the "+" icon?
Thank you!! This worked beautifully! I ended up changing your "knack-view-render.view_322" to "knack-view-render.any" to just change them all.
Cara,
I was able to change the text for all options in the view to the same thing using the following:
//Change link text "add a new option"
$(document).on('knack-view-render.view_322', function(event, view, data) {
$('.kn-add-option').text('Add an unlisted option');
});
I couldn't figure out how to do individual changes for more than one "Add a new option" but this works for me, it changes all of them to the same thing. Hope this helps.
Chris.
This was great, but i noticed that after this code was inserted, the underline text decoration on the text got removed. Anyone know how this change could follow the previous css style for the link?