# "Add a new option" custom text

**URL:** <https://forums.knack.com/t/add-a-new-option-custom-text/6753>\
**Category:** API & Custom Code\
**Created:** [May 1, 2019, 7:31pm UTC](https://forums.knack.com/t/add-a-new-option-custom-text/6753 "2019-05-01T19:31:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CaraKimbro39595](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@CaraKimbro39595](https://forums.knack.com/u/CaraKimbro39595)\
**Post date:** [May 1, 2019, 7:31pm UTC](https://forums.knack.com/t/add-a-new-option-custom-text/6753/1 "2019-05-01T19:31:24Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![CamilleCam14788](https://avatars.discourse-cdn.com/v4/letter/c/e95f7d/32.png) [@CamilleCam14788](https://forums.knack.com/u/CamilleCam14788)\
**Post date:** [August 23, 2019, 2:40pm UTC](https://forums.knack.com/t/add-a-new-option-custom-text/6753/2 "2019-08-23T14:40:20Z")

</div>

Worked for me too! Thanks! Question... how do I retain the "+" icon?

---

<div class="post-metadata">

**Author:** ![CaraKimbro39595](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@CaraKimbro39595](https://forums.knack.com/u/CaraKimbro39595)\
**Post date:** [July 9, 2019, 7:04pm UTC](https://forums.knack.com/t/add-a-new-option-custom-text/6753/3 "2019-07-09T19:04:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ChrisGoode18309](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@ChrisGoode18309](https://forums.knack.com/u/ChrisGoode18309)\
**Post date:** [July 2, 2019, 3:03pm UTC](https://forums.knack.com/t/add-a-new-option-custom-text/6753/4 "2019-07-02T15:03:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![GSH](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/gsh/32/2669_2.png) [@GSH](https://forums.knack.com/u/GSH)\
**Post date:** [May 13, 2024, 1:17pm UTC](https://forums.knack.com/t/add-a-new-option-custom-text/6753/5 "2024-05-13T13:17:04Z")

</div>

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?
