I just started a job that has a lot of sites built on CMSMS.
Anyway, the last guy built a form using form builder that we are using for a marketing campaign. The first page asks for a "code" (which is printed on a mailer that we send out) and then they fill out the survey. On the last page of the survey if the supplied a code it will query the database and retrieve the first name, last name, and company name and populate it into the results page form so they can submit it easily.
I'm digging around trying to find what server/database this data is on so that I can update it with some new information. Anyone have any ideas where to look for this?
http://jibemedia.com/assess-my-brand (link to the survey)
CMSMS Newbie
Re: CMSMS Newbie
There could be a User Defined Tag (UDT, under menu "Extensions") that gets called by Formbuilder. The UDT can contain the database code.
Re: CMSMS Newbie
Just checked and I'm not seeing anything there. I am seeing the following code as a Global Content Block:
From what I understand this is taking the data elements and populating the form using javascript. So, there must be some reference somewhere else with the database information....any other ideas?
Code: Select all
// Get output from FEU if available and prefill contact form
if (typeof(window.access_code) != 'undefined' && window.access_code != '') {
if (window.access_code != '') {
$('.contact_amb .access_code input').attr('value', access_code);
};
if (window.first_name != '' && window.last_name != '') {
$('.contact_amb .name input').attr('value', first_name + ' ' + last_name);
};
if (window.phone != '') {
$('.contact_amb .phone input').attr('value', phone);
};
if (window.company != '') {
$('.contact_amb .company input').attr('value', company);
};
};
Re: CMSMS Newbie
Also found this:
It was under the edit page, smarty data specific to that page. This help at all?
I don't think it's related at all....just wondering what SMARTY is....
Code: Select all
{* Grab all the data from _SESSION *}
{assign var=logo value=$smarty.session.fbparams.logo}
{assign var=style value=$smarty.session.fbparams.style}
{assign var=voice value=$smarty.session.fbparams.voice}
{assign var=automobile value=$smarty.session.fbparams.automobile}
{assign var=brand value=$smarty.session.fbparams.brand}
{assign var=student value=$smarty.session.fbparams.student}
{assign var=presence value=$smarty.session.fbparams.presence}
{assign var=seo value=$smarty.session.fbparams.seo}
{assign var=usability value=$smarty.session.fbparams.usability}
{assign var=access_code value=$smarty.session.fbparams.access_code}
I don't think it's related at all....just wondering what SMARTY is....
Code: Select all
{* If access code, pull user data from FEU *}
{if !empty($access_code) && $access_code != "" && $access_code != "[unspecified]" }
{get_feu_properties username=$access_code property='first_name' method='assign'}
{get_feu_properties username=$access_code property='last_name' method='assign'}
{get_feu_properties username=$access_code property='phone' method='assign'}
{get_feu_properties username=$access_code property='company' method='assign'}
{/if}
Last edited by amariotti on Wed Jul 14, 2010 5:23 pm, edited 1 time in total.
Re: CMSMS Newbie
You might need to pay someone on the Professional Help Needed forum if you cannot learn Smarty for this website.
Re: CMSMS Newbie
Figured it out. Somewhere I kept seeing a reference to a variable with "feu" in it, so I did some more digging and found out that there is a FrontEnd Users module that he was using the manage it. All this time I thought that it was something external, but it was really under my nose. 
