Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
6 replies
Subscribers
7 subscribers
Views
2546 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
We have a form with about 6 select boxes. Scenario is: on selection of the optio
raghunandanj3904
Certified Lead Developer
over 12 years ago
We have a form with about 6 select boxes. Scenario is: on selection of the options in the select box, a value needs to be captured and stored. For eg: in select box 1, if i select option 2 then value 2 to be stored and so on. When form is submitted, i neeed to have the sum of all the values in an integer variable and also an array with the selected values. Eg my final integer value is 28 (which is added up) and array is {2,4,6,8,2,6} somethin like this.
I dont wanna have n number of hidden fields for n number of select boxes. If i have only 1 filed and if i want to keep dding the values to the same then on which event i can do this?? cos, onChange event will keep adding everytime i change the value. onoutfocus is not there.
onSubmit if I try to do this, then again if there are many select boxes, the scripting will b huge.
If someone can suggest the best approach would be helpful.
One more thing, in the output tab of data if I try to add the value to ...
OriginalPostID-60267
OriginalPostID-60267
Discussion posts and replies are publicly visible
Parents
0
raghunandanj3904
Certified Lead Developer
over 12 years ago
Hi Satya / Akhilan, jus correct me if i m wrong. When we set a field value thru script, doesn it gets stired into an ac! ?? Cos i notices that, on submit event of the form, i was setting a field value which vs stored onto n ac!. And in the output tab i used to store it to pv!. But never got the value at all.
So wat i did was, before submitting the form, i set the field value and made it mandatory(it is already hidden.. :) ). then in onSubmit i checkd the value, it appears!!!
Thanks anyway for the suggestion.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
raghunandanj3904
Certified Lead Developer
over 12 years ago
Hi Satya / Akhilan, jus correct me if i m wrong. When we set a field value thru script, doesn it gets stired into an ac! ?? Cos i notices that, on submit event of the form, i was setting a field value which vs stored onto n ac!. And in the output tab i used to store it to pv!. But never got the value at all.
So wat i did was, before submitting the form, i set the field value and made it mandatory(it is already hidden.. :) ). then in onSubmit i checkd the value, it appears!!!
Thanks anyway for the suggestion.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data