Skip to Content

How to Restore default values on click of reset button.

Hi All,

I am working on SAP CRM 7.0 for Adobe interactive forms using web request.

With my form design and data mapping, on load of form I could see all the default values prepopulated.

here if the user changes some field values and want to reset to its original state I added a Reset button with script

{xfa.host.resetData();} instead of resetting to defaults it actually clearing all the form values. what am I doing wrong here ...?

Also every time user submites the form with data, system create a new version of the document with the updated values.

Lets suppose user has 4 versions, if he open 4th version, does some changes and clicks on the reset button it should rollback the data to 4th version, but as said its clearing the entire data.?

Does somebody had such issue and got a solution, if so please share it...

Thanks in Advance,

Chinna.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 01, 2010 at 12:21 PM

    hi,

    i agree..

    the reset button is working as per the functionality.if you want that on clicking the button it should restore to default values.

    then you have to add a custom button. and on click event do coding.

    in order to get the default values in those fields.

    regards,

    sakshi

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 01, 2010 at 08:51 AM

    Rest button is working as it should i.e. in any application if you have a reset button when user clicks on reset it means the user wants to refresh the complete data.

    Now if you want to reset data to hold the previous values, you will have to play with hidden fields and presence properties for them i.e. store the drop-down value in a hidden text field and upon reset, set the drop-down to value from text field.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 02, 2010 at 03:09 AM

    Hi Chintan,

    Thanks for your reply, fair enough we need to explictly handle such behaviour with scripting.

    I have below thoughts please advice if you have any indea on the same.

    I found couple of methods like exportdata, importdata, restorestate and restore, can these be used in such a way that on form initilaize I export data to a hidden field and on click of reset I flush everything and load data from this hidden field?

    Edited by: Chinna Babu on Sep 2, 2010 5:10 AM

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 03, 2010 at 03:02 AM

    The only option left is is explicitly handling the values.

    I will try to get it would post further info on this.

    Add comment
    10|10000 characters needed characters exceeded