Page 1 of 1

Need some help with modifications

Posted: 2016-11-19 08:30
by vikeh
Hi,

I need some help with making a total field to update instantly while inserting numbers in other fields. It is already updating after saving but I would like the Total field to update while the client is inputting prices.

I need some other help with customization.

I need that once specific fields are filled with information, another field called status will be changed to either; In Stock, On The Way or Sold

Can someone help please?

Thanks in advance

Re: Need some help with modifications

Posted: 2016-11-21 12:08
by DevGiu
WIch type of field is "status"? A lookup? and option list?

Re: Need some help with modifications

Posted: 2016-11-21 13:16
by vikeh
Option list no look up

Re: Need some help with modifications

Posted: 2016-11-21 15:35
by DevGiu
forquicklist didn't tried yet. For lookups you have to do something like:

Code: Select all

$j('#' + field).val(idValue);
$j('#' + field + '-container').select2('data', {id:idValue, text:textValue});
I did a fast try and didn't worked over a quicklist, but shouldn't be dificult, but I'm very busy right now to do more tests. I will try later if get the time.

Re: Need some help with modifications

Posted: 2016-11-21 22:16
by vikeh
Hi DevGiu

I'm willing to pay if you can help with this issue and also the realtime calculation of the Total field while inputting numbers.

Thanks in advance

Re: Need some help with modifications

Posted: 2016-11-25 13:07
by DevGiu
I will try to do some testing this weekend. About updateing fields is easy, just capture the event this way

Code: Select all

// we will put on yourotherfield the value of yourfield plus 2, when yourifeld lost focus.
$j('#yourfield').on('blur', function{
finalvalue = $j('#yourfield').val() + 2;
$j('#yourotherfield').val(finalvalue);
});

Re: Need some help with modifications

Posted: 2016-11-25 13:09
by vikeh
Thanks DevGiu but it has been solved now :)

Re: Need some help with modifications

Posted: 2016-11-25 13:17
by DevGiu
What was solved, the quicklist update, or the sum of others fields?

Re: Need some help with modifications

Posted: 2016-11-25 13:22
by vikeh
Both has been solved by a person in the forum who did the job for me.

Re: Need some help with modifications

Posted: 2016-11-25 14:56
by DevGiu
Great. Could be interesting to share how you did it, but it's your decision.

Regards.