TOPIC:

I want to incremente a textfield when i click on a submit button 1 week 1 day ago #258327

  • Topic Author
  • JLouis
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 23
  • Thanks: 0
Hello,
I want to increment the textfiels name 'OranginaNbre'

what I have done:
On my submit button (name 'Orangina'), in advanced properties , I have writen

function ff_Orangina_action(element, action) { ff_getElementByName('OranginaNbre').value = "+1"; } // [code] but it doesn't works. Can you help me ? Thank's[code]function ff_Orangina_action(element, action)
{
ff_getElementByName('OranginaNbre').value = "+1";
} // but it doesn't works. Can you help me ? Thank's[code]

but it doesn't works.
Can you help me ?
Thank's

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

I want to incremente a textfield when i click on a submit button 1 week 1 day ago #258329

  • Mirec's Avatar
  • Mirec
  • Away
  • Junior Breezer
  • Junior Breezer
  • Posts: 35
  • Karma: 1
  • Thanks: 1
Hello,

if I understand you well (you mean, when you insert a number into your text field then when you click on the button submit, an inserted number will be increased for one value and it will be stored in the database. ),. You can do it on the way, in your custom button Go Advanced ->Actionscript, select 'Custom' and type 'click', in code box input code:
function ff_button_action(element, action)
{
    switch (action) {
        case 'click':
    var num= ff_getElementByName('textfield').value;
    ff_getElementByName('textfield').value = +num;
    ff_validate_submit();

            break;
        default:;
    } // switch
} // ff_button_action

Notes: inside the code, instead 'button' insert the name of your button (no title), then instead 'textfield' insert the name of your 'text field'.

regards!
Mirko

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

I want to incremente a textfield when i click on a submit button 1 week 1 day ago #258330

  • Topic Author
  • JLouis
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 23
  • Thanks: 0
Thank's a lot, Mirko, for your rapid response.
If I put:
var num= ff_getElementByName('OranginaNbre').value;
ff_getElementByName('OranginaNbre').value = 4;
OranginaNbre display 4
If I put:
var num= ff_getElementByName('OranginaNbre').value;
ff_getElementByName('OranginaNbre').value = +num;
OranginaNbre display 0

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

I want to incremente a textfield when i click on a submit button 1 week 20 hours ago #258333

  • Mirec's Avatar
  • Mirec
  • Away
  • Junior Breezer
  • Junior Breezer
  • Posts: 35
  • Karma: 1
  • Thanks: 1
Hello,

hm, could you please send to me data of your backend and link, on the email below? I will check what is problem.

ma@evolutio.hr

regards!
Mirko

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

I want to incremente a textfield when i click on a submit button 1 week 2 hours ago #258344

  • tihana.krivic's Avatar
  • tihana.krivic
  • Online
  • Moderator
  • Moderator
  • Posts: 5366
  • Karma: 3
  • Thanks: 383
Hi,

fyi: @JLouis, did you add custom submit button ?

Regards,
Tihana

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

I want to incremente a textfield when i click on a submit button 1 week 1 hour ago #258346

  • Topic Author
  • JLouis
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 23
  • Thanks: 0
Hello Tihana,
No. but my breezzingforms is an old version (build 929).

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

Moderators: ForumSupport
Time to create page: 0.052 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!