CMS MADE SIMPLE FORGE

Form Builder

 

[#9557] Field Alias - ID

avatar
Created By: Milan Soltes (stonekv)
Date Submitted: Fri Sep 27 10:05:00 -0400 2013

Assigned To:
Version: 0.7.4
CMSMS Version: None
Severity: None
Resolution: Fixed
State: Closed
Summary:
Field Alias - ID
Detailed Description:
Field Alias ​​is not created in the output as HTML element ID


History

Comments
avatar
Date: 2013-09-27 10:21
Posted By: Tapio Löytty (Stikki)

Already fixed in SVN, release coming out shortly.
      
avatar
Date: 2013-12-10 20:21
Posted By: James Ferrell (jferrell83)

Is the fix in form builder or in the cms?  Running version 0.7.4 of form builder
in cmsms version 1.11.9 and have the same issue.  I don't see any new releases
for form builder.  Last version on 09/02/2013. Looking for the fix.
      
avatar
Date: 2013-12-10 20:25
Posted By: James Ferrell (jferrell83)

outputs the alias in the "for" attribute in the  label for the field but the
field id and name are auto generated and not using the alias.
      
avatar
Date: 2013-12-11 05:11
Posted By: Lewis Howles (lewishowles)

I've added a modification to my default template to correct this for now, as
there doesn't seem to be a new version of FormBuilder coming out any time soon.
It's pretty hacky, but it makes the form labels and inputs match. This goes
where your labels are generated in your template. The bug doesn't seem to affect
Text Areas or Select boxes, which are excluded here.

{capture assign='input_id'}
	{if $entry->type == 'Text Area' || $entry->type == 'Pulldown'}
		{$entry->input_id}
	{else}
		{$actionid}{$entry->field_helptext_id|replace:'ht':''}
	{/if}
{/capture}
<label {if $entry->multiple_parts == 1}{if $entry->type == 'Date
Picker'}for="{$input_id}_day"{else}for="{$input_id}_0"{/if}{else}for="{$input_id}"{/if}>
      
avatar
Date: 2013-12-11 05:28
Posted By: Lewis Howles (lewishowles)

(and it's probably not been released yet as Tapio could well be busy with CMSMS
2.0, but hopefully my template fix will tide anyone having this issue over for
now)
      
avatar
Date: 2013-12-19 03:07
Posted By: Ludo (Ltn_)

In TextField.class.php (l.65)

Seems like 

return $mod->CreateInputText($id, 'fbrp__'.$this->Id, $val, $length,
$this->GetOption('length'), $js.$ro.$html5.$rq);


is missing an argument ( something like  $this->GetCSSId() ) to be chosen
between automatic generated Id and the one given by CSSId.

Same goes for text input field related (From address field, ... )
      
avatar
Date: 2014-10-20 05:29
Posted By: Rolf (rolf1)

Because the 0.7.4 release was unstable, we went back to the working code of
0.7.3 and started working from there.
First priority: a stable Formbuilder release!
      
Updates

Updated: 2014-10-20 05:29
cmsms_version_id: 30123 => -1
state: Open => Closed

Updated: 2013-09-27 10:21
resolution_id: => 7