Post Staus by User Role
I am trying to create a form that creates posts that can be filled in on the frontend. I'd like for the 'post status' to change depending on the user role. For example if it is:
- Author - post status=draft.
- Subscriber - post status=publish.
I have tried creating a separate dropdown field that conditionally shows when the user role is, for example, a subscriber. This dropdown field has a value 'Published' and a separate value of 'publish'
I've then added a dynamic default value to the Post Status field of [frm-field-value field_id=1304 user_id=current] - which is the field id of the dropdown field above. However, when I submit the form it is still showing as Draft instead of Publish.
Is there a way to achieve this, ie. changing the post status depending on what the role of the user is who is completing the form? Thanks in advance.