Editbox Type Number

Issues related to forms.
Post Reply
ruel.lago22
 
 
Posts: 55
Joined: Thu Feb 01, 2018 11:32 am

Editbox Type Number

Post by ruel.lago22 » Wed May 16, 2018 10:57 am

Good day,

Does anyone know how to make a quantity button that will add/subtract when it's clicked? I am looking all over the events and animation but I wasn't able to find anything.

Something like this: http://prntscr.com/jijzv3

Wherein the Editbox is "Read-only" and the only way they can add/subtract quantity is by clicking either of those buttons.

User avatar
Pablo
 
Posts: 17713
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Editbox Type Number

Post by Pablo » Wed May 16, 2018 11:06 am

Did you check out the 'spinner' object?

ruel.lago22
 
 
Posts: 55
Joined: Thu Feb 01, 2018 11:32 am

Re: Editbox Type Number

Post by ruel.lago22 » Wed May 16, 2018 11:13 am

I just tried it but the Conditions to calculate it with the total doesn't work. Spinner object is not even listed in the "Insert Field".

Screenshot: http://prntscr.com/jikb8t

The condition to calculate using Editbox Number Type is working. But the spinner ain't doing anything.

ScreenShot: http://prntscr.com/jike1i

User avatar
Pablo
 
Posts: 17713
Joined: Tue Mar 28, 2006 12:00 pm
Location: Europe
Contact:

Re: Editbox Type Number

Post by Pablo » Wed May 16, 2018 11:29 am

Sorry, the spinner is a third party widget, it does not support conditions.
In that case you will have to implement the buttons yourself, for example using events and JavaScript.

ruel.lago22
 
 
Posts: 55
Joined: Thu Feb 01, 2018 11:32 am

Re: Editbox Type Number

Post by ruel.lago22 » Thu May 17, 2018 7:19 am

Alright! Thank you Pablo :)

dlod
 
 
Posts: 7
Joined: Thu Mar 15, 2018 7:43 am

Re: Editbox Type Number

Post by dlod » Thu May 17, 2018 5:52 pm

ruel.lago22 wrote:
Wed May 16, 2018 10:57 am
Good day,

Does anyone know how to make a quantity button that will add/subtract when it's clicked? I am looking all over the events and animation but I wasn't able to find anything.


Such buttons:
http://dlod.ru/demo-extension-quantity- ... builder-en

You can download there the free extension «Quantity button»
Or I can publish here for you the script code that was used in the extension.

ruel.lago22
 
 
Posts: 55
Joined: Thu Feb 01, 2018 11:32 am

Re: Editbox Type Number

Post by ruel.lago22 » Fri May 18, 2018 4:05 am

Oh my sweet Jesus! You have saved me a lot of time coding and searching! You are genius <3 Thank you so much!

Btw, can I ask if you are familiar with how to implement this on WWB? I am still looking on how to do this, maybe you have something in mind there that could help :)

viewtopic.php?f=75&t=80682

dlod
 
 
Posts: 7
Joined: Thu Mar 15, 2018 7:43 am

Re: Editbox Type Number

Post by dlod » Fri May 18, 2018 3:22 pm

ruel.lago22 wrote:
Fri May 18, 2018 4:05 am
Btw, can I ask if you are familiar with how to implement this on WWB? I am still looking on how to do this, maybe you have something in mind there that could help :)

viewtopic.php?f=75&t=80682
I do not know.
Try to find a similar script at https://stackoverflow.com/ (and on similar sites) and remake it for yourself.

ruel.lago22
 
 
Posts: 55
Joined: Thu Feb 01, 2018 11:32 am

Re: Editbox Type Number

Post by ruel.lago22 » Fri May 18, 2018 3:26 pm

dlod wrote:
Fri May 18, 2018 3:22 pm
ruel.lago22 wrote:
Fri May 18, 2018 4:05 am
Btw, can I ask if you are familiar with how to implement this on WWB? I am still looking on how to do this, maybe you have something in mind there that could help :)

viewtopic.php?f=75&t=80682
I do not know.
Try to find a similar script at https://stackoverflow.com/ (and on similar sites) and remake it for yourself.
Alright. Thank you :D

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests