Jump to content
  • 0

Default Values in Details DataPage


TroubleShooter

Question

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

  • 0

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.

image.png.4a03be209b8609a4f7f342a36b024729.png
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: 

 

Link to comment
Share on other sites

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...