Currently in classic view we are validating fields using onclick javascript button before calling visualforce page.Client wants to move to lightning experience but lightning doesn't support onclick javascript button.Any other ways to validate fields before calling visualforce page in lightning experience?

  • Any reason you can't create a component that exercises the validation ?
    – Kevin P
    Commented Feb 3, 2017 at 16:59

1 Answer 1


You can create lightning components to do that. Here a good guide to replace onclick javascript buttons


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .