You need to sign in to do that
Don't have an account?
Rapax
Input from text Box and button method
Hello guys,
I'm trying to develop my first visualforce page. I would like to have some text box and a button that, on the click with a method, take the text in the boxes and call an external method to cuncatenate them in a new page.
How can I do?
Thank you very much for the time that you will spend for me.
I'm trying to develop my first visualforce page. I would like to have some text box and a button that, on the click with a method, take the text in the boxes and call an external method to cuncatenate them in a new page.
How can I do?
Thank you very much for the time that you will spend for me.
You can start from this Example
http://www.sfdc99.com/2015/02/20/example-how-to-write-a-basic-visualforce-page/
Thanks for the example, I've started from here:
<apex:page>
<apex:form >
<apex:pageBlock title="Script">
<p>Processo</p>
<apex:inputText id="process"/><p/>
<p>Phase</p>
<apex:inputText id="phase"/><p/>
<p>Channel</p>
<apex:inputText id="channel"/><p/>
<p>Object Id</p>
<apex:inputText id="objectId"/><p/>
<p>Input Date</p>
<apex:inputText id="inputDate"/><p/>
<apex:commandButton value="button" />
</apex:pageBlock>
</apex:form>
</apex:page>
Now, I would like to concatenate the text inserted in the boxes by pressing the Button. How can I do it? May I have to develop a custom controller for this page? Thanks again
Yes you have to develop a Custom Controller\ like
<apex:page controller="Sendparameters">
.And instead of Using <p> tag you can use <apex:outputlabel>
In COntroller method You have to add PageReference to Redirect to Next Page.And You can send Parameters i.e Your input Text Values to Next Page with pageReference and Get these parameters on next Page From Url
I can provide You an example but Self Learning will teach You most.Try Step by Step
If you need Further guidence or you are struck anywhere please let me know