TOPIC:

order with images 1 week 2 days ago #260209

  • Topic Author
  • Ernesto1959
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 53
  • Thanks: 1
Hi
I am trying to create a form with which you can order CDs.
Is there a way to integrate images into the form?
Is there a possibility to create small elements for the number of pieces?
I add you an image, how I realised it 10 years ago...
Thanks a lot for your help and best regards
Aschi
Attachments:

Please Log in or Create an account to join the conversation.

order with images 1 week 2 days ago #260211

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6086
  • Karma: 3
  • Thanks: 429
Hi,

basically, you can have a select list with CDs, when someone select CD, image for this CD is shown. Is this ok for you, if yes, I will create a small example for you

Regards,
Tihana

Please Log in or Create an account to join the conversation.

order with images 1 week 2 days ago #260215

  • Topic Author
  • Ernesto1959
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 53
  • Thanks: 1
A small exemple would be great.
Thanks a lot for your help and best regards
Aschi

Please Log in or Create an account to join the conversation.

order with images 1 week 2 days ago #260216

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6086
  • Karma: 3
  • Thanks: 429
Hi,

I create a small example for you

File Attachment:

File Name: exampleA.zip
File Size:102 KB

Please download->unzip->Install it (BF->Configuration->Package Installer).

There you will see select list define like:
0;Please select;
0;CD1;CD1
0;CD2;CD2
0;CD3;CD3

and one section with name section1.
In this section->Properties->Description->click on Edit you will see this code:
<div id="pic"><img id="show" width="400" height="400" border="0" /></div>
Go to this section->Advanced->enable Turn off

After that go to form->Advanced->Visibility rules and you will see:
turn off section section1 if select isnot !empty
turn on section section1 if select is CD1
turn on section section1 if select is CD2
turn on section section1 if select is CD3
section1 is name for section (not title)
select is name for select list (not title), and CD1,CD2,CD3 are the values of select list

Then go to select list "select"->Advanced->Actionscript->check Custom -> check Change you will see this:
function ff_select_action(element, action)
{
switch (action) {
case 'change':
if(element.value == 'CD1'){
document.getElementById("show").src = "URL";
} else if(element.value == 'CD2'){
document.getElementById("show").src = "URL";
} else if(element.value == 'CD3'){
document.getElementById("show").src = "URL";
}

break;
default:;
} // switch
} // ff_select_action
instead of URL should be url for images->in example I put url for random images
CD1,CD2,CD3 are the values of select list

Regards,
Tihana
Attachments:
The following user(s) said Thank You: Ernesto1959

Please Log in or Create an account to join the conversation.

Last edit: Post by tihana.krivic.

order with images 1 week 2 days ago #260223

  • Topic Author
  • Ernesto1959
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 53
  • Thanks: 1
Hi Tihana
Thank you very much, but in the end I finally want to do the form without pictures.
For the number I selected the element "Number input".
In the preview it looks perfect, but live it looks strange:
www.tarallucce.ch/neu/index.php/bestellformular
Thanks a lot for your help and best regards
Aschi
Attachments:

Please Log in or Create an account to join the conversation.

Last edit: Post by Ernesto1959.

order with images 1 week 2 days ago #260226

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6086
  • Karma: 3
  • Thanks: 429
Hi,

in the frontend number input look big.
Could you please post here screenshot of preview? When I see this, I will provide you with correct css how to fix it

Regards,
Tihana

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
  • 2
Time to create page: 0.053 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!