I have put two ribbon buttons in campaign form
1.Launch Campaign
2.Cancel
If the campaign is already in launched state.. then the ribbon button "launch campaign" should be dissabled
In the same way ... if the campaign is in cancel state, then cancel ribbon button should be dissabled..
let me know the javascript code to do this