We have a form (list) that we want to have everyone edit and give comments. Once everyone has edited the item, we want an “overall status” field to trigger a workflow (send extended email). Be we did not want the overall status to be changed until everyone has chimed in. To achieve this, we created a list and there was a dropdown with everyone’s name to Approve the item. The default of the dropdown was “Pending”. I used the jquery below to hide the “overall status” until there were no dropdowns that said “Pending”
$('select :selected').each(function(){ if($(this).text() == "Pending") { $('tr:has(input[title=Overall Status])').not('tr:has(tr)').hide(); }; });
The hide code is code that Paul Galvin published here.
jquery is cool.
Comments are closed.