Hi, i am looking for a way to change the text of
- the confirmation button and
- the headline
Hi, i am looking for a way to change the text of
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.
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