• #55578
    Forcetalks

    Visualforce Component, Visualforce pages and JavaScript

    Hi,

    Is there any way to get the field value of Visualforce component to Visualforce page through JavaScript?

    Thanks

    #56130
    Salesforce | Jade Jade #10
    Forcetalks

    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

Viewing 2 posts - 1 through 2 (of 2 total)

Please to reply to this topic.

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2019 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?