WordPress doesn’t provide contact forms by default. So either you’ll have to use a form plugin or you’ll need custom CODE anyway.
Since you didn’t provide any CODE or reference to any plugin you’re going to use, I cannot provide a sample CODE that’ll work for you. In principle, plugins do provide custom hooks that can be used to create the unique ID field for your user. However, make sure you keep that form field disabled and save the value while creating the unique ID (instead of saving after user’s form submission), to make sure the ID cannot be altered by the users.
For example, if you use Contact form 7 as your form plugin, then there is a plugin called UniqueID for Contact Form 7 that provides similar option. You may check that plugin’s code and implement your own. Similar implementation is possible for WP Forms, and I’m sure other form plugins provide similar options as well.
Related Posts:
- Is there a function to search for a wildcard value when calling a shortcode?
- Contact form 7 select box different value-text than content-text in option [closed]
- How to get home page ID?
- Creating a WordPress admin page without a menu for a plugin
- Simple form that saves to database
- Let readers suggest edits from the frontend
- Get selected values from checkboxes and radio buttons via Gravity Forms gform_after_submission hook [closed]
- Where should my plugin POST to?
- Plugin development: how to create a form and get custom data?
- Multi step form, custom plugin
- shortcode doesn’t work
- Contact Form 7 plugin refreshing page on submit [closed]
- Template plugin for blog posts? [closed]
- Plugin form unable to process
- Set post tags using tag ID
- Ajax Plugin Not Echoing Response
- Plugin that will output submitted form data for user? [closed]
- How to handle forms from sidebar widgets – Processing $_POST variables using get_field_name()
- How do I add the same contact form to multiple wordpress sites and capture the response in one place or database?
- coding a WordPress AJAX Form using PHP to check if User is Logged Out and Show error
- Creating a form and displaying entry data as a table
- How can ι create my own (custom) WordPress table/list?
- Gravity Forms returns to odd position
- Storing The Data Collected by Ninja Forms into Another (custom) Database [closed]
- WordPress Multi-Step Product Search
- Get Image Having the ID [closed]
- Sell access to form [closed]
- Search by Attachment ID
- File Uploader – Upload without adding to Media Library
- Custom form not showing in correct place on page
- add_meta_box creating default form field types
- Form Plugin for Api Requests which is used via Shortcode
- How to redirect to a page after the form is submitted
- Call another page in forms
- Echo out element to another page.
- How to Use the Filter “sidebar_login_widget_form_args”
- Select Form Element Not Saving from Plugin Options
- Storing Form data in a different database
- Is it save to replace with in WordPress search form
- Contact Form 7 Plugin emails not being received by some accounts
- Contact Form 7 “non-selectable” options in a drop down [closed]
- Using AJAX to run SQL statement and populate dropdown
- How to append new form elements in “Add New” form of Users in WordPress admin panel?
- Looking for a simple checkout plugin [closed]
- Redirect plugin after form submit or show errors
- Plugin for visitors to edit content without logging in? [closed]
- How do I send the contents of a form to deliver to the already existing custom field in the wordpress theme
- Linking form to user meta fields
- WordPress Forms Advance Conditional Logic
- get wpforms ID value from ACF text field
- User loggedin as Subscriber form not sending
- WordPress – send digital product with custom email
- How to create a form where you can select multiple recipients, based on a list of website users?
- login form should redirect to register page for in 1st login next time it should redirected to home page
- WordPress search input in database, to edit information via form and update the database
- Give custom page template a custom post ID
- Bookmarking custom template pages which all have the same page ID
- How to get data from a form on a wordpress site?
- Custom Post Type with Sequence ID
- WPForms Custom Redirect not working
- Submitting form to PHP
- General Term for this form Field
- How can I implement radio buttons with icons in Contact form 7?
- wp_set_password() does not work!
- Custom Formdata matching with user table
- Hide button after form submit and save state to localstorage
- Why is my form going to frontend on html form submission present on the php files inside my custom plugin?
- Get Current Post ID in WP Loop For GiveWP
- Meta Key array building with multiple input values from fields
- Creating posts with acf_form() that has a relationship type field
- Plugin to manage form submissions on admin panel
- How to send custom mail when a user complete a specific form
- How to submit custom form data using ajax to HubSpot form?
- Ajax call to php function doesn’t work PHP code
- submit form data to wordpress existing database table using my plugin
- Page takes on two different formats
- After form submission want to show success message in the form page
- get/show Last ID
- Pause form submissions while upgrading plugins
- How to hide the form after successful php execution
- How can I automatically send an email with an excel file containing submissions for a form rather than an email per submission?
- Why doesn’t a form need an ‘action’ with a plugin that uses the post data?
- $POST variable is empty in receiving php add-on function but can be seen by jscript function
- WP_Filesystem usage within a block of code
- I created a custom form in HTML/CSS and now I need it to submit … should I create custom PHP or is there a plugin I can use?
- Include plugin form in the home page
- How can i see/log all requests coming from a registration form (not from the UI)?
- Get page content by ID (from a plugin)
- Form submit from wordpress plugin
- Create user assessment and use results in sql query
- Saving custom form fields
- How do I convince this button to do something when it is clicked?
- wordpress option page data from select form is not saving to database
- Linking Plugin Files to WP
- Adding a Filter to Sidbar Login Plugin to Change Login Button Lable
- Create plugin with form in post and submit it to specific form
- Carrying information from button click into form [closed]
- Link Forms on WordPress
- Custom Form only for admin
- Capturing POST data