NiceDuck Posted June 19, 2021 Report Share Posted June 19, 2021 Is it possible to make a trigger run when a password field is updated? Quote Link to comment Share on other sites More sharing options...
1 cheonsa Posted June 25, 2021 Report Share Posted June 25, 2021 Hi @NiceDuck, You can actually create a Trigger to run only if the Password field is updated, given that you only have few fields in the Table. In your criteria, you need to include all the fields except for the password. There should be a Timestamp field as well that will stamp the time upon update. If the timestamp field was changed, it means that there is an update happened for that record. Other fields must be equal from the previous value to the inserted one. Hope this helps. ChristianM 1 Quote Link to comment Share on other sites More sharing options...
0 NiceDuck Posted June 19, 2021 Author Report Share Posted June 19, 2021 Okay, It turns out that if the update on password originates from a DataPage (ex, Single Record Update form), the trigger activates. However, if you update the password directly to the Caspio Table, it bypass the trigger. ParkLoey 1 Quote Link to comment Share on other sites More sharing options...
0 NiceDuck Posted June 25, 2021 Author Report Share Posted June 25, 2021 As a follow up to this, I noticed that my initial observation is wrong as direct password change to the table also activates the trigger to run. For some reason however, you will need to refresh the table first before you can see the updates unlike normal record updates where the trigger apply the changes right away. Quote Link to comment Share on other sites More sharing options...
0 ChristianM Posted July 11, 2022 Report Share Posted July 11, 2022 @cheonsa 's solution worked perfectly to timestamp password updates as well. Thanks! Quote Link to comment Share on other sites More sharing options...
Question
NiceDuck
Is it possible to make a trigger run when a password field is updated?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.