Skip Navigation

[Resolved] Form Name Not Updating

This thread is resolved. Here is a description of the problem and solution.

Problem:

The issue her is that whenever the user changes their Form name the slug remains the same.

Solution:
I've submitted a feature request for this to allow for the user to change the slug of their post.

This support ticket is created 6 years, 3 months 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 12 replies, has 2 voices.

Last updated by Shane 6 years ago.

Assisted by: Shane.

Author
Posts
#1138303

I updated the name of a form in User Form Settings, but the update didn't seem to go all the way through.

When I insert the form shortcode (for current logged-in user) for 1-1-unhelpful-thought (the new name of a form, which shows up in the choices for what form to insert the shortcode for), it inserts the shortcode with the form name 1-1-unhelpful-adjective (which is the previous name of the form before I updated it).

Strangely, it seems to pull up the form whether I use the new or the old name within the shortcode, but this is still confusing so I wonder if some table didn't receive the updated form name?

This site is not yet live. I created test page /toolset-test-unhelpful-thought/. Feel free to edit form/fields/page. If you still need FTP files, please let me know (I do not yet know how to do this).

#1138347

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for contacting our support forum.

I see the issue now.

The problem is that since you created it with the old name, the slug has already been generated with the old name.

This is why when you changed the name, the slug doesn't update.

This should not cause any issues.

Thanks,
Shane

#1138417

How do I update the slug?

#1139015

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Unfortunately I see no way of updating the slug through the use of the interface.

However you should be able to update it through the database directly.

Thanks,
Shane

#1139016

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Updating through the database directly might be risky, would you like for me to still advise on how to do this ?

#1139140

No, I agree on the risk about editing the database.

But this seems like it could be problematic, not just with my current case, but in the future if I rename a form and all the slugs inserted by the shortcodes may still work but will no longer match the form name.

This is confusing because the slug will no longer be meaningful and I may not remember that it's associated with a form of a different name... especially after some time has passed, and I may then try to "correct" the slug inserted by the shortcode.

1. Can you suggest any other workaround to avoiding or fixing this problem? Obviously I'll do my best to never change a form name after I create it (because obviously the slug is based on this original name), but this isn't a sustainable solution. In reality, I'm going to have to modify my form names sometimes.

2. Can you please submit this as a feature request - the ability to change the form slug as well as the form name? (similar to how I can change a field slug and field name in the same screen)?

Thank you!

#1139142

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

What I can do for you is to escalate this to our 2nd tier supporters so that this can actually be fixed on our side because I agree that if the Name changes then an updated slug should be used.

However I believe that they left it like this on purpose because lets say a customer has alot of forms already added to many pages.

If the user was to update form name then they would go through and find all the forms and update the slugs manually.

The only way to change it is by doing it through the database.

Thanks,
Shane

#1139170

Thanks, Shane. I understand.

Another idea - maybe they can at least show the slug on the form settings page - even if it's grayed out and unchangeable, at least we know what it is.

Or just have a warning there so that we know the implications if we change the form slug (most likely I'm only going to change stuff like this in development, probably not after I'm in production).

And/or have a feature that makes this update automatically so the user doesn't have to manually update the shortcodes.

Anyway let me know what the response is. Thanks!

#1140394

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

What I can do is to still open the ticket with our second their supporters to see if this is a possibility or a feature request that can be added.

Thanks,
Shane

#1140605

Thank you, Shane, that would be much appreciated!

#1140668

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Not much else we can do here so I would recommend marking this one as resolved?

Thanks,
Shane

#1140716

My issue is resolved now. Thank you!

#1201284

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

This just an update that this feature has now been added.