cforms II User Forum

Registration is currently disabled.


Login form protected by Login LockDown.

Lost password?
Advanced Search

— Forum Scope —


— Match —


— Forum Options —


Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS Related Topics
Applying the conditional redirects on my-functions.php
May 15, 2014
6:47 pm

I'm not quite sure how to find the certain data array for a radio button field to use the conditional redirect. I've read this post:…..redirects/

And see that I need to get a field ID? I tried sending the email, but all I get is a blank email with no information that I needed.

I do realize that I need to uncomment the section in my-functions.php on lines 192 – 208, and know that $$$1 isn't the right ID. Also, I've set a default redirect URL in the admin:

if ( $setting == "redirection" ){

### note: '$$$mypick' references the ID of the HTML element and has been assigned
### to the drop down field in the form configuration, with [id:mypick] !

$userfield = $cformsdata['data'][$cformsdata['data']['$$$1']];

if ( $userfield == 'Positive' )
return 'domain URL';

if ( $userfield == 'Negative' )
return 'domain URL';

return $oldvalue; // If you use this function, this MUST be the last statement!

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
23 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3763

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5359

Posts: 18742

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)