Download & Extend

Is there a way to have "redirect_url" longer than 255 caracters?

Project:Webform
Version:7.x-4.0-alpha6
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hi,

I need to pass all the answers (only Yes or No) of a webform in the redirect_url after subsmission. However the redirect_url is of type varchar(255) which is not enough for my aims. I really need something longer as a type of text.

Is this doable? And, if so, how can I achieve this?

I have already change the type of the redirect_url in the structure of the database, however each time I want to save the settings of my form with the redirect_url longer than 255 caracters, I receive this message:

Redirect URL cannot be longer than 255 characters but is currently 983 characters long.

Any advice will be greatly appreciated, thanks.

Comments

#1

Status:active» fixed

Well, it looks like it's doable. One has to change the maxlength in webform.pages.inc in the includes folder of this module.
Best,

#2

Category:support request» feature request
Status:fixed» active

This is a good request, let's keep it open as a feature. Especially when start using tokens, the length of the URLs can get really long fairly quick.

#3

Hi,
Thanks for this. Yes indeed, the new tokens are longer than the previous one and particularly when one uses one or more nested fieldsets. For example, here is one example from my project [submission:values:e3:s:sq4:nolabel] with two fieldsets. This token has a length of 36 characters while I only need 8 to designate my field.
Hence +1 for having a longer redirect_url.
Regards,

nobody click here