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
d.tejdeep@nicomatic.ind.tejdeep@nicomatic.in 

ant to auto click the link when a field update happens

want to auto click the link when a field update happens picklist value is "sent to customer".

I have a link from website that when i click on link it will change status on website.

what i want is ,Want to auto click that link when a slaesforce field upadte happenes pick list value is"sent to customer".

auto click should run on back ground it should not reload page.

Help me suggesting some ideas .say me this is possible or not
Keyur  ModiKeyur Modi
Hi d.tejdeep,

Can you put some code? so that everyone can understand the issue clearly..
d.tejdeep@nicomatic.ind.tejdeep@nicomatic.in
Hi Keyur 

I havent  started the project .I want to know how to do it.how many ways we can do it .what is the best way
Keyur  ModiKeyur Modi

Hi d.tejdeep,

That we can only conclulde if you gave me the clear idea like how actuali you want that .. but what i understood on that we can use javascript and it will be easy for you to develope. you just want to change the labe of link i thing .

d.tejdeep@nicomatic.ind.tejdeep@nicomatic.in
{!REQUIRESCRIPT("/soap/ajax/19.0/connection.js")} 

var c = new sforce.SObject("service_request__c"); 
c.id = "{!Service_Request__c.Id}"; 
c.status__c = "sent to customer";
var today = new Date(); 
var dd = today.getDate(); 
var mm = today.getMonth()+1; //January is 0! 
var yyyy = today.getFullYear(); 
if(dd<10) { 
dd='0'+dd 

if(mm<10) { 
mm='0'+mm 

today =yyyy+'-'+mm+'-'+ dd;  
c.sentdate__c=today;
var a="{!Service_Request__c.Nicomatic_request_Id__c}".replace(",","");

result = sforce.connection.update([c]);
location.reload(true);


window.open('http://www.nicomatic.com/_1new_website/index.phpaction=ProcessReq3&idd='+'a')


I dont want to use open this url i want to click on this url ( i mean to execute this url ) without opening on new window browser