Activity Forums Salesforce® Discussions State ways to get the field value of components to Salesforce VF page through JavaScript?

  • Jade

    Member
    January 11, 2019 at 8:35 am

    Hi Bharat,

    Give the field an Id, ultimately the whole Visualforce which will have a visualforce component will be rendered as an HTML. Use JavaScript or JQuery to get the value of the field using the ID.

    Javascript:

    document.getElementById('yourTagID').value;

    JQuery:

    $('#youTagId').val();

    Hope this will be helpful.

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos