Skip Navigation

[Resolved] 2 issues with CRED edit post form

This support ticket is created 7 years ago. There's a good chance that you are reading advice that it now obsolete.

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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/Hong_Kong (GMT+08:00)

Author
Posts
#512776

First issue:
I am trying to: display a select element with current value selected

In my CRED create post form, I have a types field that is a required select field type with 3 options.
This works perfectly when a user creates a post.

However, I have a CRED edit post form to edit the posts created above. But when I include the types field in the form, it only displays a text output of the value. I need this to be a select element with the current value selected, but with the ability to choose one of the other options from the types field.

Issue 2:
In my CRED create post form, I have a required image field (users must upload an image).

In the CRED edit post form, the image displays correctly, but it also includes a "delete" button which seems to be hard coded in the image field? This is confusing some users, because if you click delete, it does delete the image, but since the image field is a required field, the image cannot be deleted and the post can not be saved without uploading a new image. Is there someplace I can change the "delete" text on the button so it displays "Change image" instead?

btw, I DO like the "Restore previous value" option on the image field - that's a great feature.

#512810

Hi there! I'm Meagan and I'll be helping you resolve these issues 🙂

Regarding Issue #1 - Sounds like the CRED edit has a bit of a bug in it that's causing the Edit portion to not load the correct field type. So that I can get a better sense of what's going on with it, I'd like to take a closer look at the specific CRED form in question.

Regarding Issue #2 - Interesting observation and valuable feedback! I know we can easily edit the button's text dynamically though code, but I'm more interested in the user experience flow you've highlighted.

I would like to request temporary access (wp-admin and FTP) to your site so that I can verify issue #1 as a bug and propose a solution for issue #2. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Our Debugging Procedures
I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

**IMPORTANT**
- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link

Thanks! If you have any questions, please don't hesitate to ask 🙂
Meagan

#512978

You guys need to fix the way this site is handling cookies.

My wordpress_logged_in_ cookie seems to be expiring every minute or so, so the site says I'm logged out. Makes it VERY difficult to reply to threads. I'm using Firefox.
The site is also saving individual cookies for EVERY page view URL?

#513202

Thanks for your site login information! I'm having a closer look now and will have some solutions for you soon.

Regarding the cookie issue, I'll kindly ask you to please open a new thread in this forum for this issue so that it can be assigned to the correct person.

Thanks for your feedback! We really do appreciate it 🙂

Meagan

#514948

Apologies for the long delay over the Easter holiday -- I will have some ideas and solutions for you soon.

Thanks!
Meagan

#517236

Dear Thorworx,

I just got this thread, and I checked it in your website, here is what I found:
Q1) First issue:
I assume we are talking about the custom field "Competition Cat" in post type "Competition Entries", and the CRED form "Entry Edit Form"
hidden link
You are using HTML codes <!-- ... --> to wrap the field:

[cred_field field='competition-cat' post='competition-entry' value='' urlparam='']

I have move the CRED shortcode outsider the HTML codes <!-- ... -->, and test the CRED form in front-end, for example:
hidden link
I can see the dropdown menu "Category" works fine, see screenshot First-issue.JPG, can you confirm it?

Q2) Issue 2,
Yes, you can change the text as what you want, for example you can add below codes into your theme/functions.php:

add_filter('gettext', 'mycustom_func', 10, 3);
function mycustom_func($translated_text, $text, $domain){
    if($text == 'delete' && $domain == 'wpv-views'){
        $translated_text = 'Change image';
    }
    return $translated_text;
}

More help:
https://codex.wordpress.org/Plugin_API/Filter_Reference/gettext

#518974

Luo,

Thanks for your help.
Everything seems to be working fine.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.