1
votes

I am new to CRM 2011. I have a button on ribbon which opens a new small form.

On that small form I need to add JavaScript Web Resource on 'OnChange' event. Is it possible to do that?

If yes can you please suggest me any thing.

I know how to add Web Resource to normal CRM 2011 forms, but don't have any idea about this small popup form.

Thanks in advance.

2

2 Answers

0
votes

Short answer: Can't do that.

A bit longer answer: Can't do that. Sorry.

Long answer: Can't do that. Sorry. Not if it's the built-in, modal pop-up presented by CRM. There are two approaches to proceed here. One pragmatic and one idealistic.

  1. Pragmatic approach: rethink. Explain what the task at hand is and maybe someone will suggest a different way to solve the problem.

  2. Idealistic approach: force it by any means necessary. You could add a web resource that looks just like the pop-up and add a lot of functionality to it. It's possible but it's definitely harder, more complex, significantly error-prone and really not recommended. Really not.

1
votes

If the pop-up form is a web resource then you can reference other web resources like you would any HTML page.

If the pop-up is a CRM form, then you may be out of luck.

What are you trying to accomplish? There may be another approach.