Page 1 of 1

Random Characters appearing in Web Form address

PostPosted: Mon Sep 28, 2020 7:28 pm
by wjohnson133
I am adding a field at the end of an address I am putting in the webform field of a call list it is a --custom_field-- and when it brings the address up it does it but it adds a "-" in the front and "+" to the end. I don't understand why.

Re: Random Characters appearing in Web Form address

PostPosted: Mon Sep 28, 2020 8:07 pm
by carpenox
are you using --A--custom_field_--B-- like that?

Re: Random Characters appearing in Web Form address

PostPosted: Tue Sep 29, 2020 8:57 am
by wjohnson133
carpenox wrote:are you using --A--custom_field_--B-- like that?

Yes and it is putting in the value from the custom field but it is adding a "-" at the beginning and a "+" at the end.

Re: Random Characters appearing in Web Form address

PostPosted: Tue Sep 29, 2020 9:39 am
by carpenox
it may be a bug....what are the steps you took and I will try to reproduce the error.....

Re: Random Characters appearing in Web Form address

PostPosted: Sun Oct 04, 2020 6:30 pm
by wjohnson133
carpenox wrote:it may be a bug....what are the steps you took and I will try to reproduce the error.....


I put VARhttps://xxxx.xxxxxx.com/Opportunity/ ... ityid--B-- in the webform field for the campaign and opportunityid is a custom field when it comes up on an answered call it comes up ex. https://xxxx.xxxxxx.com/Opportunity/man ... ID=-12345+ when the opportunity id is 12345. When I click the webform button from the agent screen though it comes up https://xxxx.xxxxxx.com/Opportunity/man ... t&ID=12345

Re: Random Characters appearing in Web Form address

PostPosted: Sun Oct 04, 2020 10:04 pm
by williamconley
Verify that the field itself does not contain extraneous characters such as a space or other invisible characters. Forcibly replace one with text on the CLI in a mysql query to be sure whatever software you used to insert the values didn't toss in some invisible crap you don't want.

I admit this would not explain why it comes up differently in those two situations, it's still possible as a lot of the code in Vicidial is duplicated rather than "function", so two different uses of the same data may be handled differently (in which case it's ALSO a bug if that's your error!)