You need to sign in to do that
Don't have an account?
how to update field on visualforce page with using actionFunction or javascript
Hi guys, here is the case, i have some record with fields, which i show in table on the page. And lets say user update one of the fields, so i want to save time when he\she modified this record to some hidden field. So need somehow send id of the record to javascript and do this there or use somehow a actionFunction. Can you help me with some examples.
<script> function updateModifyAtField(questionId){ ...update ModifyAt field here } </script> <apex:actionFunction name="updateModifyAtField" action="..." rerender="form"/> <apex:column headerValue="Name" > <apex:inputField value="{!question.Name}" onChange="updateModifyAtField()"/> </apex:column> <apex:column headerValue="ModifyAt" > <apex:inputField id="{!question.Id}" value="{!question.ModifyAt}" /> </apex:column>
Here is some update, i tried to do this in this way, but no luck: