Home › Toolset Professional Support › [Closed] Hide data in fields inside post edit form
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Karachi (GMT+05:00)
This topic contains 3 replies, has 3 voices.
Last updated by Waqar 2 years, 6 months ago.
Assisted by: Waqar.
Hello,
I have an edit post form that is editable by users on the frontend (cred form). When users go to edit the post using this form, they see all of the information in the fields - the data is prepopulated. I am wondering if there is a way to hide the prepopulating, so that users don't see the data in the fields, but they still have the ability to enter data and submit info (and then I get to decide if I want to keep those changes because I have it set to "Pending Review").
Thanks!
Languages: English (English ) Spanish (Español )
Timezone: Europe/London (GMT+00:00)
Hi there
You could run some JavaScript to clear out the values from the form once it was loaded, but when the form was submitted whatever values were provided would overwrite the existing values. It could have the status pending review, but the original values would be lost (and if the users left some fields blank then those fields would have no value).
I'm not sure that's what you are aiming for, but if so we could probably help you with a little JS to clear the form values.
Hey Nigel, thanks for the response and sorry about the delay - I hear the situation. I'll take a snippet of JS that might help with that and decide if I'd like to implement it... I don't want to lose the data, I'm considering adding more custom fields. But for now we'll stick with this
Thanks!
Hi,
Thanks for writing back.
We can assist you with the example JS code, but, we'll need to see which type of fields are involved.
Can you please share the link to the page where this edit form can be seen? If it is accessible to only logged-in users, you're welcome to include temporary user access details too.
Note: I've set your next reply as private.
regards,
Waqar
The topic ‘[Closed] Hide data in fields inside post edit form’ is closed to new replies.