C
|
cgphp 7/28/2011 |
Please could you more clear ? keyup is not a valid event for checkboxes. |
|
501375 7/28/2011 |
Thanks for the reply! |
C
|
cgphp 7/28/2011 |
var ctrlTotal = Runner.getControl(pageid,'total_field_name'); |
|
501376 7/28/2011 |
Again thanks for helping me out. I tried the code and it didn't work for me. It did place a zero in the total field but it is not getting the value from the check boxes. Here is what I'm using: var ctrlTotal = Runner.getControl(pageid,'oneScore');
var ctrlTotal = Runner.getControl(pageid,'total_field_name'); |
C
|
cgphp 7/29/2011 |
What's the name of the lookup ? |
C
|
cgphp 7/29/2011 |
var ctrlTotal = Runner.getControl(pageid,'total_field_name');
|
|
501377 7/29/2011 |
Thanks again, var ctrlTotal = Runner.getControl(pageid,'oneScore');
<input id="value_oneEngaged_1_0" type="checkbox" value="5" name="value_oneEngaged_1[]"> |
C
|
cgphp 7/29/2011 |
Try this:
|
|
501378 7/29/2011 |
Thanks im getting values now in the total field but.. it is not giving the the correct values. Example: Try this:
|
C
|
cgphp 7/29/2011 |
Please, post the full code of your Javascript Onload event. |
|
501379 7/29/2011 |
Here you go..Thank you so much for the help. We are so close!!! var ctrlTotal = Runner.getControl(pageid,'oneScore'); |
C
|
cgphp 7/29/2011 |
Check firebug for some errors or warnings. |
|
501380 7/29/2011 |
Thanks, I will do that! |
C
|
cgphp 7/29/2011 |
Or post the link of a demo. |
|
501381 7/29/2011 |
Check firebug for some errors or warnings.
ctrlTotal.setValue(0); to ctrlTotal.setValue(3); it worked. |
C
|
cgphp 7/29/2011 |
Inside the click event: $(this).next('input').val(); |
|
501382 7/29/2011 |
I'm not sure I know how to put that in the script. Here is what I did but it didn't do anything. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=59811&image=1&table=forumreplies' class='bbc_emoticon' alt=':(' /> var ctrlTotal = Runner.getControl(pageid,'oneScore'); Inside the click event: $(this).next('input').val(); |
C
|
cgphp 7/29/2011 |
To provide you the right code I need to know exactly what you want to achieve. |
C
|
cgphp 7/29/2011 |
Please, post a screenshot of your actual form and specify the fields name. |
|
501383 7/29/2011 |
To provide you the right code I need to know exactly what you want to achieve.
|
C
|
cgphp 7/29/2011 |
Please, specify exactly the fields name. |
|
501384 7/29/2011 |
Please, specify exactly the fields name.
|
C
|
cgphp 7/29/2011 |
Sorry, I don't need it. This solution should work: var ctrlTotal = Runner.getControl(pageid,'oneScore'); |
|
501385 7/29/2011 |
Sorry, I don't need it. This solution should work: var ctrlTotal = Runner.getControl(pageid,'oneScore');
|
C
|
cgphp 7/29/2011 |
In the edit page: var ctrlTotal = Runner.getControl(pageid,'oneScore');
|
|
501386 7/29/2011 |
In the edit page: var ctrlTotal = Runner.getControl(pageid,'oneScore');
|
C
|
cgphp 7/29/2011 |
My total in the total box when I clicked edit was 13. When I opened up the page it the total in the total field was 147
|
|
501387 7/29/2011 |
Sorry, I don't understand what you mean. Please, could you be more clear about "it the total in the total field was 147" ?
|