TroubleShooter Posted July 24, 2019 Report Share Posted July 24, 2019 Hello, Is it possible to set a default value on a Details DataPage / Details Drilldown? I have a "Seen" field (DataType is Yes/No) in my records and I wanted have that always set to checked (i.e. Yes) when anyone opens that Details Page. I do understand that I cannot set an OnLoad value to it since its value depends on the actual record. I hope someone can help. Thanks, TS Quote Link to comment Share on other sites More sharing options...
0 Nuke354 Posted July 24, 2019 Report Share Posted July 24, 2019 Hello TroubleShooter, What you can do is to add a javascript to the footer to automatically check the checkbox. Make sure "Enable HTML Editor" in the Advanced tab is unchecked. Code here: <script> document.getElementById("EditRecordSeen").checked = true; </script> With this, you can also add conditions if necessary. Please visit this link for more info on using JavaScript with Caspio: Quote Link to comment Share on other sites More sharing options...
0 Queso Posted January 11 Report Share Posted January 11 Hi @TroubleShooter, this article along with a formula in a Calculated Value might help you achieve it: https://howto.caspio.com/datapages/reports/how-to-count-the-number-of-times-a-record-has-been-viewed/ Quote Link to comment Share on other sites More sharing options...
Question
TroubleShooter
Hello,
Is it possible to set a default value on a Details DataPage / Details Drilldown?
I have a "Seen" field (DataType is Yes/No) in my records and I wanted have that always set to checked (i.e. Yes) when anyone opens that Details Page.
I do understand that I cannot set an OnLoad value to it since its value depends on the actual record.
I hope someone can help.
Thanks,
TS
Link to comment
Share on other sites
2 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.