Inline editing: confirmation button

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

  • the confirmation button and
  • the headline
    Screenshot 2023-03-05 123301

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

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

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/

Regards,
Sunny Singla

1 Like