Hey, I’m a long-time Tadabase user, and for several reasons am trying out Knack as a replacement.
One very useful thing they have there is “Table Rules”. These are rules that are triggered whenever a record is created or edited (via form, inline editing, etc.). When a record is created/edited you can perform different types of actions like updating the record, calling an external API, etc.
I was wondering if Knack has a similar feature. I’ve read about “Record Rules” and “Conditional Rules”, but none really fit the bill (record rules run only on form submissions, but not on inline editing, etc.).
So for example if I wanted to do the following:
When a record is edited (e.g. grid inline editing),
Send the record data to an external API, and receive a response,
Update some field of the edited record with the API response
Hi @Crumbs, welcome to Knack!
There’s no built-in way on the Builder interface to trigger it, but in the JavaScript code (in Classic mode), you can add a table inline edit listener:
// Change view_1 to the table view you want to listen to
$(document).on('knack-cell-update.view_1', function(event, view, record) {
// Do something after the inline edit
alert('updated a record for table view: ' + view.key);
});
Inside this you could fire off a post to a webhook.
Alternatively, inline edits do have record rules, where you could send an email that contains the record ID to a mail hook and process your automations from there.
You will need to toggle from Next Gen back to Classic.
Classic is the current version that supports jQuery JavaScript and CSS. Next Gen is the new version still being worked on by Knack, hence the code section being greyed out.
Next Gen will use the React JavaScript library. Hence Stephen’s comment.
Oh OK, sounds great. Now I can continue playing around with it. Thanks so much both of you!
Edit: I was happy too early I can’t see where I can toggle to Classic. I see the “Next-Gen” tag at the top of the builder page. Where can I toggle back to Classic? (Tagging you because of the edit @CarlHolmes@StephenChapman)
Hi all!
About 50% of new users are now getting Next-Gen by default.
If you’d like the ability to switch between Classic and Next-Gen, just send a quick note to Support. This helps us track which features in Next-Gen are still most important to prioritize, instead of enabling the toggle for everyone by default.
Note: The version badge is not clickable - it simply shows which version you’re using.
If you have access to both, you’ll see a link to switch versions next to the badge.
Thanks @Kara, I sent support an email on Sunday (June 29) but haven’t heard back from them yet. I hope they’ll be able to do this soon, because my trial has a ticking clock on it
@AlagoLowe I’ve been reading about Knack and watching some videos for some time now, maybe even from when we started out with Tadabase and having to choose a platform in the first place. I thought this would be a good time to actually test it out and try to feel the differences and compare.