Jump to content

Create a webpage Light box from caspio's if than script that changes text color

Recommended Posts


I have a script that changes the word to not confirmed when a user needs to click on an item. My only issue is to try to turn this script into a light box so that when they click on not confirmed or edit, it will pop up instead of taking them to a separate page. 

<a id="linkvisi[@field:ID]"> <script>
var isi = document.getElementById("linkvisi[@field:ID]");
if('[@field:ProducerConfirmation]' == 'No'){
  isi.innerHTML = '<a href="http://www.link.com/events-details.html?ID=[@field:ID]"><span style="color:#FF0000;"><u><b>Not <br> Confirmed <br> </b></u></span></a>';
  isi.innerHTML = '<a href="http://www.link.com/events-details.html?ID=[@field:ID]"><span style="color:#000000 !Important;"><u>Edit</u></span></a>';
</script> </a>


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.

Reply to this topic...

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

  • Create New...