You need to sign in to do that
Don't have an account?
RohithaSfdc
Dynamic Visualforce apex:inputText addition
HI Thanks in advance,
I am trying to add the fields <apex:inputText> Dynamically
i have got the code in Html (http://jsfiddle.net/YE5vF/2/) But unable to get this code in Visual force page Any body please help me over here. I have used this script even it is not working below is the code i have used. how to use those html components in salesforce VFPAGE.
Need Exact output , How to configure the above mentioned JS fiddle code in Visualforce page
Thanks & regards,
Mounika
I am trying to add the fields <apex:inputText> Dynamically
i have got the code in Html (http://jsfiddle.net/YE5vF/2/) But unable to get this code in Visual force page Any body please help me over here. I have used this script even it is not working below is the code i have used. how to use those html components in salesforce VFPAGE.
<apex:page sidebar="false" StandardController="Account" standardstylesheets="false" rendered="true" docType="html-5.0"> <script type="text/javascript">//<![CDATA[ $(window).load(function(){ $("[id$=day]").change(function() { var total = 0; $('.timesheet2 input').each(function() { total = total + Number( $(this).val() ); }); $('div#total_amount').html(total); }); });//]]> </script> <apex:form > <apex:pageBlock > <apex:pageBlockButtons > <apex:commandButton action="{!save}" value="Save"/> </apex:pageBlockButtons> <table id="newspaper-b" border="" width="100%"> <thead> <tr> <td>Value1</td> <td>Value2</td> <td>Adding Value</td> </tr> </thead> <tr> <td><apex:inputText style="width:60px;height:20px"/></td> <td><apex:inputText style="width:60px;height:20px"/></td> <td><apex:inputText style="width:60px;height:20px"/></td> </tr> <tr> <td><apex:inputText style="width:60px;height:20px"/></td> <td><apex:inputText style="width:60px;height:20px"/></td> <td><apex:inputText style="width:60px;height:20px"/></td> </tr> <tr> <td><apex:inputText style="width:60px;height:20px"/></td> <td><apex:inputText style="width:60px;height:20px"/></td> <td><apex:inputText style="width:60px;height:20px"/></td> </tr> </table> </apex:pageBlock> </apex:form> </apex:page>
Need Exact output , How to configure the above mentioned JS fiddle code in Visualforce page
Thanks & regards,
Mounika
All Answers
For me onload of visualforce page chrome latest broaser rendering inputText. what is your exact requirment. do you want dislay some of value 1 nd value 2 in addition box when user click on save button?
Best Regards,
-Vivek
The above Image displays 3 columns and 3 rows, when user enter the data in those Value 1 & Value 2 the sum of values should be displayed in Added Value that is last column.
Value1+Value2 = Adding value
Thanks
Thanks,
Rohitha
Would be better if you try it yourself first, let me know if you face any issues. :)
Thanks
Thanks