Hai
I have a requirement as follows:
- Display a set of custom fields for eg. Bill No, Amount
- I want the user to keep adding values iteratively. For eg. the user has 10 bills to enter, he should do the following
a) Enter Bill No 1, Amount 500. With “On Blur Event” on amount a Pop up message should show up asking do you want to enter another Bill ?
b) If user clicks Yes then it should again accept another Bill No 2, Amount 1000 . Again on Blur it should show popup
c) Now user might say no. Then I want to take all the stored bill amounts, total it up into a table as a single value (only total will be stored).
The need is to use the same set of custom fields (Bill No and Bill Amount) to accept multiple values and stop the iteration when user presses No
I tried with sc_ajax_message but I am able to get only 1 button to display
following is the code
sc_ajax_message(“Do you want to Continue”,“Conntinue Title”,‘modal=Y&button=Y&button_label=Proceed&show_close=Y’, “timeout=0”);
Now, there are 2 queries:
a) How to show another buttin for the No
b) How to capture the button clicked value ?
Thanks in advance
Suresh