Support

Account

Home Forums Front-end Issues Update status to 'Approved'

Helping

Update status to 'Approved'

  • I’d like to set up a process where I have two sets of users (Employee and Manager).

    I have the first part built and sorted: the Employee submits their annual leave request via an acf-form and it has the approval status of ‘Awaiting Approval’

    The second part is that I want to create a page where when the Manager logs in (via a front end page) they see the requests and can set them to ‘Approved’ or ‘Declined’

    Is there a way to do this?

  • OK. I got things working by changing up the way I do things.

    Now I have a new little issue!

    My form keeps duplicating submissions on refresh?

    
    		<form action="<?php the_permalink(); ?>" method="POST" enctype="multipart/form-data">
    			<input name="test_field" value="" required/>
    			<input type="submit"/>
    		</form>
    
    		<?php
    			$post_id = 291;
    			$field_key = "test_repeater";
    			$row = array(
    				"test_field"   	=> $_POST["test_field"],
    			);
    
    			add_row($field_key, $row, $post_id);
    		
    		?>
    
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.