on 12-16-2008 11:42 AM
I need to disable the Submit button on a CRM survey in order to eliminate the possibility of multiple survey posts. The documentation advises that I should be able to add javascript to the PBO module perform this function, but I can't seem to get it working properly.
So far, I've added a disableSubmit function to the survey PBO and I can see the javascript function in the rendered code. Is there a way to assign the function to the Submit button's onClick event? The closest I've come is to assign the function to the form's onSubmit event, which overrides the built-in onSubmit event and causes the survey to not be submitted.
I've already tried implementing the changes in SAP note 945112, and found nothing useful.
Does anyone have experience with this that can offer some assistance? We're running CRM 4.0
Thanks,
Jerry
Dear Jerry,
Thanks for reply, actually I was looking solution for restricting resubmition of survey. If you have any idea pls elaborate.
Thanks & Rgds
Mallikarjun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Jerry,
I am facing the similar issue , could you please elaborate how did you restricted multiple responses for a Survey from same person?
Rgds
Mallikarjun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In Survey Repository > Static Survey XSLTs. Export and add javascript to the CRM_SVY_GENERATE_SURVEY_TEMPLATE.xslt file. Follow instructions in SAP Note 945112 to replace the existing template with the one you modified.
Keep in mind, this will only keep the user from double-clicking the submit button, and will not stop them from clicking Back and resubmitting.
Good luck,
Jerry
Solved the problem myself. Added the javascript to the xslt template file, rather than the pbo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Got to do this in OnLoad event. If you can not do so, then add a document level script
< script >
your javascript
< /script >
Add your Javascript to disable the submit button here.
Easwar Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.