Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

How to get the apex inputfield value in the controller?

Asked by Clare Matthews Mar 6, 2023 844 views 1 answer
Share

About this question

I am trying to store value in an object using:

in the controller I am doing this:

public Expense_Object__c VS {get;set;}
public PageReference saveAndReturn()
{
        system.debug('Value is:'+VS.Total_Amount__c);
}

I am trying to fetch value here but neither data is getting inserted nor I am getting any value?

Your answer

1 Answer

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.