<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">I finally got to try it out, and the hidden field didn't behave as desired.  In fact, I'm not sure anything happened at all.<div><br></div><div>Would the first example you gave cause problems for another pmform, such as one that sends emails?<div><br><div apple-content-edited="true">
<p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Monaco" size="1" style="font: 9.0px Monaco">Crisses</font></p>


</div>
<br><div><div>On Oct 22, 2014, at 12:09 PM, Petko Yotov <<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">The current implementation could be changed to require Publish permissions when Drafts are enabled but it would require a password for the data page _before_ trying to save the draft version:<br><br>  if ($_REQUEST['action'] == 'pmform')<br>    $HandleAuth['edit'] = 'publish';<br><br>Instead, try adding a hidden field inside your pmform template, something like:<br><br>  (:input hidden postdraft 1:)<br><br>This should cause the post to be considered as if the user had pressed the "Save draft" button while editing the page, so the Draft page will be filled. (Unless I don't quite understand what you're trying to do.)<br><br>Petko<br><br>On 22.10.2014 12:24, Criss Ittermann wrote:<br><blockquote type="cite">When a PmForm writes to another page, it doesn't respect the<br>$EnableDrafts and $EnablePublishAttr features.<br>Is there a way to require a PmForm respect these settings?<br>We have 2 levels of author: admins & members. When a member uses a<br>PmForm to change their profile, it should be approved by an admin<br>before going public. I'm using the drafts system but member data is<br>being stored in a "secret data area".<br></blockquote><br>_______________________________________________<br>pmwiki-users mailing list<br><a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>http://www.pmichaud.com/mailman/listinfo/pmwiki-users<br></blockquote></div><br></div></div></body></html>