<p>getting close, but still not quite working (unchecking box now makes it delete the lifetime entry). Here's the basic functionality we need:</p>

<p>check 'force app expiration' box -> set applications.settings.allowpermanent = 0<br>
uncheck 'force app expiration' box -> set applications.settings.allowpermanent = 1<br>
neither should change or delete applications.settings.lifetime</p>

<p>applications.settings.lifetime should only be changed when the 'force app expiration' box is in the checked state, and a new number is entered into the textbox.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/opentechinstitute/luci-commotion-apps/issues/54#issuecomment-31279976'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/3074564__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcwMzcxMDk3MiwiZGF0YSI6eyJpZCI6MjI2MzU1MDR9fQ==--c5b82c9c32cbb4d200fe011e52bb57a235844316.gif' height='1' width='1'></p>