Page 1 of 1

Input data not resetting.

Posted: Tue Mar 24, 2015 11:17 am
by devapp

The input section is not resetting even after the data has been submitted to the db, can anyone elaborate me how to do it with or without a local variable and on which event to add the script?
Image
Image


Input data not resetting.

Posted: Tue Mar 24, 2015 11:49 am
by Alena Prykhodko

Hello,

On what event do you invoke service?


Input data not resetting.

Posted: Tue Mar 24, 2015 12:09 pm
by devapp

Image

I've added
$('input').val('');
to the click event of "Add task" button and before navigating to the next page, but when I browse back to "Create New" page, the input field is clear but when I hit "Add Task", the previous data is being added to the db again.


Input data not resetting.

Posted: Wed Mar 25, 2015 9:41 pm
by Egor Kotov6832188

Hello,

Can you show us mapping for before send of your service,
it looks like you are saving it somewhere in LSV, that is why it saves old value