+ Start a Discussion

Getting error while returning selected records from custom lookup

"The name can only contain underscores and alphanumeric characters. It must begin with a letter and be unique, and must not include spaces, end with an underscore, or contain two consecutive underscores. "

Basically what I'm trying to do is I am returning my selected records from custom lookup page to my base page. On click of save button it will close the opened lookup page and return the selected value to my base page.

I don't know what is the reason of this error.
<apex:commandButton value="Save" action="{!save},javascript:top.window.opener.closeLookup('conId','mess',thisPage:myForm:j_id28:myPgBlock:Con:targetName,thisPage:myForm:j_id28:myPgBlock:Con:targetId)" ></apex:commandbutton>

is there any error at javascripts side. Use try Catch to find out