function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

how to auto fill quote field name


How to auto fill quote name field ?
Hi Prakki 

Where u need this Requirement Let me know visualforce page or somewhere else
if in visual force page 
1- U need a javaScript function window.onload in that function u have to pass your controller value using actionFunction it a little bit tricky but first explain me your complete requirement so that I can resolve it 

Thank you 
Avaneesh Singh

I'm trying auto fill quote name from java script list button. I would like to update Quote name with opportunity name
I would like to use a list button for this,the code what i have written is not throughing any error but it's not filling any value in the quote name field. 

So What is your exact problem are you getting any error or what?
put your code here and let me examine it 

window.location.href = '/0Q0/e?retURL=%2F{!Opportunity.Id}&oppid={!Opportunity.Id}&name={!Opportunity.Name}';

Is the logic i'm using in the button, it's not throughing any error but value is not grtting filled.  
After i changed to name to Name it worked.
Other question i have is how can i pass count() function value in the url from javascript list button ?
I mean select count() from opportunity value