Fieldtype

Developer
Supported

Super Dynamic Fields

ExpressionEngine 4, ExpressionEngine 5

Back to this add-on's main page
View Other Add-ons From Amici Infotech

     

You must be logged in to post.

usage in Channel Forms

Support Request

rKern
rKern

I am building a channel Form using this plugin.  I tried it with the regular Custom member field tags on a select list, but I but it just returns the variables to me.  IS there a different way I should be using it in Channel Forms?

Amici Infotech
# 1
Developer
Amici Infotech

Hi there,

You can use default field tag that is:

{field:my_field_name} 

You are right on getting options manually so you can build input tag by your own. I have added 1 pair tag to solve this issue. Please update your plugin with latest 1.0.2 and follow below tag pair.

<select name="super_dynamic">
 
{exp:super_dynamic_fields:parse field_name="super_dynamic" prefix="item"}
 
<option value="{item:option_value}">
  
{item:option_name}
 
</option>
 
{/exp:super_dynamic_fields:parse}
</select

To pre-selected any option, You can do something like this:

<select name="super_dynamic">
 
{exp:super_dynamic_fields:parse field_name="super_dynamic" prefix="item"}
 
<option value="{item:option_value}" 
  
{if super_dynamic != ""}
   
// If there is already value in field. Case: [Edit form, Submit form inline with post data.]
   
{if super_dynamic == item:option_value}selected{/if} 
  {if
:elseif item:default} 
   
// If marked pre selected
   
selected 
  {
/if}
 
>
  
{item:option_name}
 
</option>
 
{/exp:super_dynamic_fields:parse}
</select>
{if error:super_dynamic}{error:super_dynamic}<br>{/if} 

Let me know if you have any further queries.

Thanks,
Mufi
[Amici Infotech Support]

rKern
# 2
rKern

Thanks for the quick response…  I did the update and used the suggested tag pair, but I now get the following error on the page:

Error
The following tag has a syntax error
:

{exp:super_dynamic_fields:parse}

Please correct the syntax in your template
Amici Infotech
# 3
Developer
Amici Infotech

That means plugin is not upgraded.  Please uninstall and install again.

rKern
# 4
rKern

I will try this later this evening hopefully.  Thank you.

Amici Infotech
# 5
Developer
Amici Infotech

Hi rKem,

Did you manage to make it work? Let me know if you need any assistance on this.

Thanks,
Mufi
[Amici Infotech Support]