# Inline editing: confirmation button

**URL:** <https://forums.knack.com/t/inline-editing-confirmation-button/13869>\
**Category:** Knacksters' Idea Lab\
**Created:** [March 5, 2023, 11:35am UTC](https://forums.knack.com/t/inline-editing-confirmation-button/13869 "2023-03-05T11:35:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wolfgang\_Brötz](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/wolfgang_br%C3%B6tz/32/1465_2.png) [@Wolfgang\_Brötz](https://forums.knack.com/u/Wolfgang_Br%C3%B6tz)\
**Post date:** [March 5, 2023, 11:35am UTC](https://forums.knack.com/t/inline-editing-confirmation-button/13869/1 "2023-03-05T11:35:29Z")

</div>

Hi, i am looking for a way to change the text of

- the confirmation button and
- the headline  
 ![Screenshot 2023-03-05 123301](https://us1.discourse-cdn.com/flex020/uploads/knack/original/2X/b/b80a4933d3e2cd80498c1662cd4c0bb90cf0015b.png)

---

<div class="post-metadata">

**Author:** ![Sunny\_Singla](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/sunny_singla/32/1007_2.png) [@Sunny\_Singla](https://forums.knack.com/u/Sunny_Singla)\
**Post date:** [March 6, 2023, 5:19pm UTC](https://forums.knack.com/t/inline-editing-confirmation-button/13869/2 "2023-03-06T17:19:52Z")

</div>

Hello Wolfgang,

try below code.  
$(“.cell-edit”).live(“click”,function(){

setTimeout(function(){changtxt();},1);

})

function changtxt(){

if($(“.drop-element .kn-title”).is(“:visible”))

{

var header=“Custom Header”;

var button=“My Button”

$(“.drop-element .kn-title”).html(header+‘’);

$(“.drop-element .cell-editor a”).html(button);

}

else{

setTimeout(function(){changtxt();},1);

}

}  
hope that help

Regards,  
Sunny Singla

---

<div class="post-metadata">

**Author:** ![Wolfgang\_Brötz](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/wolfgang_br%C3%B6tz/32/1465_2.png) [@Wolfgang\_Brötz](https://forums.knack.com/u/Wolfgang_Br%C3%B6tz)\
**Post date:** [March 6, 2023, 6:29pm UTC](https://forums.knack.com/t/inline-editing-confirmation-button/13869/3 "2023-03-06T18:29:36Z")

</div>

Hello @Sunny_Singla,

thank you. Unfortunately, it does not work. If i understand your code correctly, it should read “Custom Header” resp. “My Button” which it does not.  
 ![Screenshot 2023-03-06 192825](https://us1.discourse-cdn.com/flex020/uploads/knack/original/2X/0/01efcbb1110a6413de757979b6a9e80e81de3cb4.png)

---

<div class="post-metadata">

**Author:** ![Sunny\_Singla](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/sunny_singla/32/1007_2.png) [@Sunny\_Singla](https://forums.knack.com/u/Sunny_Singla)\
**Post date:** [March 7, 2023, 2:49am UTC](https://forums.knack.com/t/inline-editing-confirmation-button/13869/4 "2023-03-07T02:49:31Z")

</div>

Hello,

Look like when I make changes I change in the button class as well.

Try below code

$(“.cell-edit”).live(“click”, function() {  
setTimeout(function() {  
changtxt();  
}, 10);

})

function changtxt() {  
if ($(“.drop-element .kn-title”).is(“:visible”)) {  
var header = “Custom Header”;  
var button = “My Button”  
$(“.drop-content .kn-title”).html(header + ‘’);  
$(“.drop-content a.kn-button”).html(button);  
} else {  
setTimeout(function() {  
changtxt();  
}, 10);  
}  
}

It’s works here  
[https://roberts.knack.com/farmers#changetxt/](https://roberts.knack.com/farmers#changetxt/)

Regards,  
Sunny Singla
