Home › Forums › Front-end Issues › Front-End Form Save as Custom Status › Reply To: Front-End Form Save as Custom Status
I updated the $_POST['submitted']
. Using the filter, if I submit the form with “submitted” unchecked (you can see where $status was output using echo and it show ‘draft’ as intended):
Array
(
[_acfnonce] =>
[_acfchanged] => 1
[_acfform] => a1hNb1hBTmg2Z0J1V3BDbTdpbm5qeDVNcVNUOEI0OElsb05hMmtDaFpBdlFOS29HaURtZFZkVTJrQ0JlUGFNRms4bkE3K0Q5M3NHeFBodTdCRmFjdVczbEFPZ0pnOFNOcmdsempQaDdBS2NVUTJEbitXQldpM2JtQmpZMnVGdC83NHZoNFNYNjE0dzlteXFDb1ZSdVBiVkE5Uk4zZ0xxZVZQTXkwUDBVK3BBMndxZnZiYlRWN1BZejF4Z2J4RWVkSTdZL2xLWU1GdEFBcnVCekhwQjRGTnU5MCtMc2N4VzJVdGoxR2JSRTlYL2RicDh3VllIUCs2SHc1T0dtbEIxZnVSb21IVGlTcVh0bUhrZWxmc2RtWFhna0lXU25zTzlrcWxsajJZdVh6WllDLysyRzNHZU9YUmFlZ0xPOXNramo5b1kyZHBwVUJjN1dXaTEwUmV0OUdiUlR4RkxOcGt5d3BjUllDYTVvQlMrdzlEK2hlVjdUamltbndaOXNoQ3ZWUzJhTzhqNmN2QmlPQUU3R213ZEdnd3J4Lzd6dTBHZnN2MEh1OE1hQzFsY0t3UEZDWFpxR3F1L0RHVitKZ2dDN3Q0aUJJSWo1WmxKaU95NlY1dUR6TjYvZ2RVbFFYTnVoQVNpMElQVWRhMmpCcDNwOFk1a3psVkMrb29qak5QVUVJbGVhT3RFdC9GSTBNa0pVOTJLR2d4NEZDdmpHd1hLQ2JldVJENHhKbmEwWitJQnRtVEVWdUZKT0Z5Y3BVUGovcndFc0xjTUEyb1gva0JXMk4xWlI2N2IzWUd3bkphWjNyY0kvYVBtK3V4MmVtbUhDc2Y0MzZxUXVuVCtLRHplOXFBSnkxKzRaRE5PNjA4Q21KWmdUV3Y1bWVlS1ZkM0tlbGRyemd0OGFTTkhEdzNFWXRUNTN4R2FaM3VNV2pMaE1QWGVpZFdnUGUrYzdJbjBqQnN6Tk9OYWVSYnpUdU1iWlBBZmxLZWdzUnk3amUxcVVHQ3l3YVVGY21kclpXcUhQN2Mrb2x4N2xKT0lKYnh2QmtaZ29EOWhhR1VybnpEV0NtN1h2QlQ0SjBJaWxFS1Q2QW1XL1VVRFpyQjcwdUlHUmh2QVFmN2p5aFlJVVpDc2QyaHNsSVdRdC82WElvdnpKd2t1aWxYMWQ1cVhkbjdrQk9uT3JwV2FWdG9qQlBSQk93Nk9sLzE1WXpOMmtTcEdBSVVCWlRCSnRKNXRCYkF5SWY0Qk0wemVENGpiRW1EZUNDa1EvZktLTlpwVEdQLzlFb1lWRDh5SnVHVzVPb25qZTlEZEtGZHRlVUtFRGRhQUFnditKSzJOUmpscWtxeDQxVlFhWkdGTFFHQk96aFlXemc0NWFnd0IyeW95V2JqM28rQ1RIUFl1QXJkdEtFRG56OVRPMGEyUVhlSlJNSno5RG1KNnBhMEN6VGtzTS9SYmhCeEYvTkZzU2xxdUh4ZkdFaTAvdk9aZTZveHBVWXlPRXEwbmRha01qL3MybUs1ZUVZYTZYczAzS21vLy9EamNTVmoyUmVnT091eUlWWHFSVjYxd2RRSms5YmJ3Z1JndWIzbHQyNUUyYmNvZTlNYXZpcmsyQ0NVUk5VK0xrc2JvblNaL3dqWlNIVHB4Z2twWWlmMjNOQ2c9PTo6owsszaga9XIEzYCy+P8j9Q==
[acf] => Array
(
[field_58dff18e13f03] => Test
[field_58dff21213f05] => Test
[field_58dff27513f08] => Test
[_validate_email] =>
)
)
draft
With the checkbox checked you can see $status outputs ‘submitted’ as intended:
Array
(
[_acfnonce] =>
[_acfchanged] => 1
[_acfform] => ME1VRWtzdzJLVVo5TXBmZWphZFJMNkJ4T0JobzZpNFZlOFp2NDNkUi9SWUtjYmhFblExQkxSem5WaHVSNnZ1UFhQQlZML0xpYW1vQkZWZ1Rnb3k5ZGtIYUVLYlJvc2N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VThqejdLcU1sWHRJWnVidHRCYld0VzRsL0NEc1hnS1V6Mko5a2JhbW4rWDljS2c3UWxCWS9BZ05sNFd0dUYydEd5R3F4TFFseWVtdFNCYUw3Z1dxcFVSRzVNTjl0VXA2M1RuMzc5WGNJd0JJTjVsaDZJTDc3b3R1cVhkdVJtQ0c0ckt0ODVTdXNmdy8yTGMwM2VNKzc5cnUxWjJ5cURhWENTOWlhWENvZHdEOWpicjkzL25tMEtReE1ZMHhTajM2K2g5bEUzUzJmemNBMHYreDYwRGhNNHFNMXYzZEpHYWFsR0dkNkpMQXVQaE9vUWxaRmpvRjNGenhnNWc5RTAwSXQvb3h1S2haSXZLd2doaitvcTRKWGRKSVE4TlNJSkNqQTRIdEM2Y0Nzd3Q0Y3g5cytNTENIR0NldEtaNFlZeW1nekVFWGtraXRaWk0vbTBKMlBMSmxpdmNUbnF3Z2c9PTo6/ovmIPCQDeflxg6kNBOk6Q==
[acf] => Array
(
[field_58dff18e13f03] => Test
[field_58dff21213f05] => Test
[field_58dff27513f08] => Test
[_validate_email] =>
)
[submitted] => submitted
)
submitted
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.