Jump to content


  • Posts

  • Joined

  • Last visited

ecomsales's Achievements


Newbie (1/14)



  1. I have a postings bulletin board website in which I have placed Caspio datapages. I received the following code, from a Caspio support specialist, placed in the Footer, which causes the posting contained in the database to expire, "deleted" after a given time, which works great: <script> function f_date(){ var v_currentDate=new Date(); v_currentDate.setDate(v_currentDate.getDate() +14); var v_assignDate = (v_currentDate.getMonth() + 1) + "/" + v_currentDate.getDate() + "/" + (v_currentDate.getFullYear()); document.getElementById('EditRecordExpiration_Date').value = v_assignDate; } f_date(); </script> I now need to create another postings bulletin board for a new website in which I can perform the following functions: 1) Cause the posting to auto-change from an Active status to an Inactive status at a specified date. The posting must able to be Deactivated manually, from the website front-end by the User or Admin, prior to the auto-deactivate. The Posting must also be able to be manually Reactivated by the User or Admin, from the front-end, after the auto-deactivate. I will need the auto-deactivate time period to reset each time the posting is Reactivated. 2) Then, if it is Reactivated, either after being Reactivated manually by the User or Admin, and then subsequently manually Deactivated or Auto-deactivated, I need to set an Auto-Delete date, after the posting has been Deactivated for a set period of time.
  • Create New...