You need to sign in to do that
Don't have an account?
Nag22
How to save live data automatically in salesforce
Hi
I am working on a requirment where list of questions with options(radio, checkbox, freeText) should be displayed in the page, when ever user enters the responses
that responses should be saved in the database automatically.
For that I am using autosave (action pollar with 5 seconds), then what happens is we have some validations on record saving like phone number should be 10 digits.
If I enter 5 digits AUTOSAVE has performed and giving error.
Is there any alternative to saving the live data automatically while typing the telecaller.
I am working on a requirment where list of questions with options(radio, checkbox, freeText) should be displayed in the page, when ever user enters the responses
that responses should be saved in the database automatically.
For that I am using autosave (action pollar with 5 seconds), then what happens is we have some validations on record saving like phone number should be 10 digits.
If I enter 5 digits AUTOSAVE has performed and giving error.
Is there any alternative to saving the live data automatically while typing the telecaller.
If you want to save each time the user types anything, you'd need a keypress or keyup handler for each question, and you'd also need to execute some client side validation to see if the data was in a position to be submitted (i.e. passed the simple validation such as the phone number having 10 digits). One downside to this is that you are replicating validation from the server in the client.
I tried with onKeyPress event of open text area, when ever I enter any leter its hitting the database every time . onKeypress event is taking some time , every letter typing we hitting the database. Coulu you please tell me , Is it a good practice?