Automatically click the 'edit' link after page view renders via js

I have seen another post where you can automatically click the submit button for a form. But, I would like to automatically click the 'edit' link in a details view.

Full confession; I am not that good with JS

$(document).on('knack-scene-render.scene_645', function(event, scene) {
 
$('.kn-link-page').trigger('click');

});

 

That is so beautiful Kelson!!!! It works great!!

Thank you so very much!

Have a great day!

Bob

Hi Bob, 

 Replace the trigger with the script posted below. Make sure you replace the text "Edit" with the exact label for your link (it is case sensitive)

Knack.$('div.kn-details-link a:contains("Edit") span').click()


Best Regards, 
Kelson Erwin
Full-Time Knack Builder
kelson@ksensetech.com
http://www.ksensetech.com/knack/