Module Interface Field (Products + FormBuilder) Help

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Candesign
New Member
New Member
Posts: 4
Joined: Sun Jun 12, 2011 7:57 pm

Module Interface Field (Products + FormBuilder) Help

Post by Candesign »

You can import item from Products into FormBuilder to set up something like an order form. Okay, I've done that. But I am having a hard time passing variables from one form where someone, say, orders a package, to another one where the items included in that package are selected, and the user can change if they want to. All package forms will direct to this second options page, where the user can add or change things in the package. Then they will check out.
I seem to not be able to capture an individual select in a field with module interface. For instance, if I have used MIF and gotten a category with 4 items, those four are lumped into one field and treated as one. I also can't access the radio or checkbox used by Formbuilder as $entry->input or $field->input, either. What's going on? Please help, even if it's to state something so glaringly obvious I missed it, or to direct me to a page where I can be helped via tutorial.
Saeglopur
New Member
New Member
Posts: 6
Joined: Tue Jun 14, 2011 4:30 am

Re: Module Interface Field (Products + FormBuilder) Help

Post by Saeglopur »

Having same problem. Using this code to get things from Products:

Code: Select all

{foreach from=$items item=entry}
	{assign var=MData value=''}
	{assign var=Cd value=''}
		{foreach from=$FBvalue item=MData}
			{assign var=MData value='::'|explode:$MData}
			{if $MData[1]==$entry->id}
				{assign var=Cd value=' checked="checked"'}
			{/if}
		{/foreach}
	<div class="ProductDirectoryItem">
		<input type="checkbox" value="{$entry->price}::{$entry->id}" name="{$FBid}[]" {$Cd} />{$entry->product_name} ({$entry->weight}{$weight_units}) £{$entry->price}    
	</div>
{/foreach}
and can access "value_fld#='whatever'" from formbuilder if i input it into the page template, but i don't need to change the value. i need to input which inputs should be selected (which checkboxes/radios) upon loading this new form from the first form depending on which form it is. how can i solve this? formbuilder lumps everything together from the outside module so you can have 4 or 5 items sharing the same name and you can only target value, not whether it is selected, afaict.
Post Reply

Return to “Modules/Add-Ons”