Skip to Content
avatar image
Former Member

how to refresh the form?

Hi

i have few input field for example take first name and last name

and also i have two buttons YES or NO,when ever i fill the form and click on YES button ,the data should be loaded in to database and the page should be Refreshed and when ever i click on NO data should be loaded that it( refreshing the form is not necessary when i click on NO button),plz help me out frm this issue

thanks

kishore

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 19, 2008 at 09:55 AM

    Hi ,

    On Action of YES clear the attributes

    i.e wdContext.currentcontextElement().setfirstName("");

    wdContext.currentcontextElement().setLastName("");

    Regards,

    Sunitha

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 19, 2008 at 10:07 AM

    Hi,

    On click of YES invalidate your node

    Regards

    Ayyapparaj

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 19, 2008 at 12:04 PM

    Hi,

    If the first name and last name are 2 individual valueattributes the clear them for yes button as

    wdContext.currewntcontextelement().setFirstname("")
    wdContext.currewntcontextelement().setLastname("")

    if the firstname and lastname is binded to a common value node then invalidate the node as givne below

    wdContext.node<name od value node>().Invalidate();

    Regards

    Padma N

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 03, 2011 at 05:28 AM

    nnhhnh

    Add comment
    10|10000 characters needed characters exceeded