So I got this form that, if you're logged in with FEU, fill up certain fields with the users account information. I also thought it would be sweet to skip the Captcha thingy when logged in .. but how? I can simply hide it when logged in, but the function is still there and just doesnt send the form.
So.. Is there a code to disable Captcha if logged?
Here's my Form code:
{if $customcontent_loggedin > 0}{else}
Logga in
Är du registrerad användare kan du logga in, och därmed ladda dina sparade uppgifter. Det gör det mycket lättare för dig som beställer regelbundet.{/if}
{cms_module module=FrontEndUsers nocaptcha=1 lang="sv_SE"}
{* DEFAULT FORM LAYOUT / pure CSS *}
{$fb_form_header}
{if $fb_form_done == 1}
{* This first section is for displaying submission errors *}
{if isset($fb_submission_error) && $fb_submission_error}
{$fb_submission_error}
{if isset($fb_show_submission_errors) && $fb_show_submission_errors}
{foreach from=$fb_submission_error_list item=thisErr}
{$thisErr}
{/foreach}
{/if}
{/if}
{else}
{* this section is for displaying the form *}
{* we start with validation errors *}
{if isset($fb_form_has_validation_errors) && $fb_form_has_validation_errors}
{foreach from=$fb_form_validation_errors item=thisErr}
{$thisErr}
{/foreach}
{/if}
{if isset($captcha_error) && $captcha_error}
{$captcha_error}
{/if}
{* and now the form itself *}
{$fb_form_start}
{$fb_hidden}
{if $total_pages gt 1}{$title_page_x_of_y}{/if}
{foreach from=$fields item=entry}
{if $entry->display == 1}
{strip}
{if $entry->needs_div == 1}
required == 1 || $entry->css_class != '' || $entry->valid == 0} class="
{if $entry->required == 1}required{/if}
{if $entry->css_class != ''} {$entry->css_class}{/if}
{if $entry->valid == 0} fb_invalid{/if}
"
{/if}
>
{/if}
{if $entry->hide_name == 0}
multiple_parts != 1} for="{$entry->input_id}"{/if}>{$entry->name}
{if $entry->required_symbol != ''}
{$entry->required_symbol}
{/if}
{/if}
{if $entry->multiple_parts == 1}
{section name=numloop loop=$entry->input}
{if $entry->label_parts == 1}
{$entry->input[numloop]->input} {$entry->input[numloop]->name}
{else}
{$entry->input[numloop]->input}
{/if}
{if isset($entry->input[numloop]->op) && $entry->input[numloop]->op}{$entry->input[numloop]->op}{/if}
{/section}
{else}
{if $entry->smarty_eval == '1'}{eval var=$entry->input}{else}{$entry->input}{/if}
{/if}
{if $entry->needs_div == 1}
{/if}
{/strip}
{/if}
{/foreach}
{if $customcontent_loggedin > 0}
-> Disable Captcha in some Way!?
Ange säkerhetskod
{$title_captcha}{$input_captcha}
{$graphic_captcha}
{/if}
{/if}
{$prev}{$submit}
{$fb_form_end}
{/if}
{$fb_form_footer}
Anyone with an idea? Please
