Support

Account

Home Forums ACF PRO Use current user to fill in user field

Solved

Use current user to fill in user field

  • I want to create a acf form where users can add their days off using the acf_form methode. For this form it is import that their filled in forms will be connected to a user-field. To prevent fraud this field needs to be filled in automatically and must not be available for the users. What is the best way to approach this challenge?

  • Do not include the field in the acf_form().

    Create an acf/save_post action that sets the value of the field based on the user that is currently logged in.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.