ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Require field be changed on entry edit

January 27, 2012 11:24am

Subscribe [1]
  • #1 / Jan 27, 2012 11:24am

    Hello,

    I’ve got a client that is using a date field on an EE 2.1.3 install that they need editors to show the date/time that changes have been made on that specific field. The date is part of a matrix row and there is only one entry in the channel.

    I’ve searched devot:ee but couldn’t find any add-ons that would require a change on entry edit for a specific field/cell.

    Please advise.

  • #2 / Jan 27, 2012 11:51am

    I added the following into the instructions for the cell, but couldn’t even test it as there were
    tags inserted at every return. :( - also not sure if the jquery is correct as I wasn’t able to test it. But the key is to have some way to get this requirement out to the client.

    < script>
    $(document).ready(function() {
     //get value of date cell and assign to variable
     var open_date = $('td.matrix .hasDatepicker');
     $('#submit_button').onClick({
      if (open_date = 'td.matrix .hasDatepicker'){
       return: false
      }
     })
    });
    
    < /script>
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases