web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Encoded percentage sign in extraqs breaks form

(0) ShareShare
ReportReport
Posted on by 285

When a percentage sign exists in a field that needs to be sent to another form through the "extraqs" URL parameter, it "breaks" the ribbon by hiding it under a blue bar. See screenshots for visual aid.

ribbon-with-percent.PNG  ribbon-without-percent.PNG

This is the method I use to send the extraqs to the newly opened window to the form:

window.open("/main.aspx?etn=new_privatemessages&pagetype=entityrecord&extraqs=" +
        encodeURIComponent(extraqs), "_blank", features, false);

The field that is causing this is a lookup field that is meant to be auto-populated through the built in CRMD functionality, using the id and name parameters.

I'm not sure how to fix it. Any ideas?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    Have you tried to use Xrm.Utility.openEntityForm? Check this - msdn.microsoft.com/.../jj602956.aspx

  • Artemy Profile Picture
    285 on at

    The Xrm.Utility.openEntityForm method does solve the percentage sign problem, but introduces new ones.

    The windowOptions parameter doesn't seem to work. Could be a CRM version issue.

    Internet Explorer (Chrome works fine) now brings up an error saying that one of my onload functions on the opened form is undefined.

    Not sure I like that trade-off.

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    That's a bit weird - I have never experienced those issues.

    Can you please provide code you used previously - that uses window.open? Also can you please post an example that causes issue you mentioned in initial post?

  • Artemy Profile Picture
    285 on at

    Actually, the onload function issue seems unrelated. I put back the old code and it's still there.

    Here's the function that I created using your initial feedback:

    function OpenNewMessage(extra) {
        var windowOptions = {
         openInNewWindow: true
        };
    
        var parameters = {};
        parameters["new_caseid"] = parent.Xrm.Page.data.entity.getId();
        parameters["new_caseidname"] = parent.Xrm.Page.getAttribute("title").getValue();
    
        if(typeof extra !== 'undefined'){
            for(param in extra){
                parameters[param] = extra[param];
            }
            console.log(parameters);
        }
    parent.Xrm.Utility.openEntityForm("new_privatemessages", null, parameters, windowOptions); }
  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    What's the version of CRM are you on?

  • Artemy Profile Picture
    285 on at

    2015 On-premise.

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Based on MSDN new window option is available in 2015 - msdn.microsoft.com/.../jj602956(v=crm.7).aspx

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans