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
Mitchell McLaughlin 1Mitchell McLaughlin 1 

Convert visual force page action into JavaScript

Hello -

Am i able to convert this visual force page action into javascript on the action button, so i can add validation by checking that some fields are not null, onClick of going to this new page?

User-added image
Sagar PareekSagar Pareek
I would suggest you to create an inline visualforce page with custom buttons on it. On buttons you can call the javaScript to check the fields are null or not then you can redirect to the page.
Mitchell McLaughlin 1Mitchell McLaughlin 1

I've never done something like that before. 

Is there no way to redirect to this Visual Force Page through a URL?


You can something like this on OnClick javascript button: