This topic is locked
[SOLVED]

 take control of the cancel button

12/9/2018 6:14:26 PM
PHPRunner General questions
A
ayctech author

Can you take control of the cancel button when you click?

HJB 12/9/2018

https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=86534&image=1&table=forumreplies
... see to it that INLINE ADD and INLINE EDIT are checked (as seen on the right side of the screenshot).

A
ayctech author 12/10/2018

I mean if you can take control with javascript or jquery
example
var ctrlState = Runner.getControl(pageid, 'state');
ctrlCountry.on('change', function(e) {
if (this.getValue() == 'US') {
ctrlState.show();
} else {
ctrlState.hide();
}
});

A
ayctech author 12/11/2018

This would be the code I needed, thank you
if(inlineRow){
inlineRow.onCancel = function(){
console.log('edit cancelled');
};
}