Jump to content
  • 0

Time/Date Display Rules for Sections in a Details Report Datapage


Clint

Question

I need to display a link after a certain time/date (essentially "now" compared to the date entered in the record) in a table. (IF date.table IS AFTER NOW then show this link: http:...)

Using rules and sections seems to make the most sense, except I can't figure out the criteria settings. : Condition, Operator, Value. 

If it's possible to do this right in the HTML/JS, that's cool too.  (the script checks to see if someone has completed the form, and displays one of two different links)

<script>
if ('[@field:connect_PIF_ER_eval_complete]'.length<3) {
document.write('<a href="https://www.seaetc.com/participant-dashboard/event-evaluation/?ER_ID=[@field:ER_Events_1_ER_ID]&Ev_Type=[@field:ER_Events_1_Event_Type]&join_ID=[@calcfield:1]" class="et_pb_button_caspio_compeval">Complete Evaluation</a>');
}
else {
document.write('<a href="../participant_certificate.php?fn=[@authfield:First_Name]&ln=[@authfield:Last_Name]&cred=[@authfield:Credentials]&er=[@field:ER_Events_1_Title]&date=[@field:ER_Events_1_ER3*]&ce=[@field:ER_Events_1_ER17_Total]"  target="_blank" class="et_pb_button_caspio_viewcert">View Certificate</a>');
}

</script>  

thx!

Link to comment
Share on other sites

1 answer 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.

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...