You need to sign in to do that
Don't have an account?
Custom Button with Java Script or Visualforce?
Not sure if this is the correct forum, but lets give it a shot, I'm using the standard object, Account, which has a related custom object, JTA.
Trying to create a custom button to show on the Account's related list properties Butons.
I first created a List Button (see image 1) with settings shown and with no syntax errors. This is the syntax used:
I then placed the custom button onto the Account's Related List Properties - JTAs (screenshot #2).
When accessint the New Action Setup button, it produces a pop up window with the following error (screenshot #3):
A problem with the OnClick JavaScript for this button or link was encountered:
Unexpected token &
I haven't created any other content (e.g., visual force page, or apex controllers) that I may be missing in all this?
Custom Object Name: JTA
Custom Button Name: New Action Setup



Trying to create a custom button to show on the Account's related list properties Butons.
I first created a List Button (see image 1) with settings shown and with no syntax errors. This is the syntax used:
/00U/e?who_id={!JTA__c.Id}&retURL=/{!JTA__c.Id}&cancelURL=/{!JTA__c.Id}&ent=JTA
I then placed the custom button onto the Account's Related List Properties - JTAs (screenshot #2).
When accessint the New Action Setup button, it produces a pop up window with the following error (screenshot #3):
A problem with the OnClick JavaScript for this button or link was encountered:
Unexpected token &
I haven't created any other content (e.g., visual force page, or apex controllers) that I may be missing in all this?
Custom Object Name: JTA
Custom Button Name: New Action Setup
please use like this..
All Answers
and what exactly you want to do there, could you please explain your use case.
Hey Pramodh,
I don't want to use the standard button, since it is named "New JTA", but I do want that functionality on the custom button, "New Action Step".
Management wants the button renamned and doesn't like the button name of "New JTA". The only other way to get the button renamed is to change the entire custom object name from JTA to Action Step, but I want to avoid that if instead a custom button can be created to create a new JTA record.
let me know if you still facing any problem
Still didn't work but here is what my syntax looks like:
/a2j/e?CF00NJ0000001sr6T={!parentObject.Name}&CF00NJ0000001sr6T_lkid={!parentObject.id}&retURL=%2F{!parentObject.id}
/a2j/e?CF00NJ0000001sr6T={!account.Name}&CF00NJ0000001sr6T_lkid={!account.id}&retURL=%2F{!account.id}
Here's the error I receive when enter the syntax onto the button:
please use like this..