@yasirsaeeed, you could do this by using the once()
function as shown in the image below:
survey sheet as seen in your XLSForm:
But please note that this approach could make your survey long as you will need to make a hidden copy of all your questions and use the once()
function under the calculation
header.
So with this approach, the first input made to the question will be stored in the hidden question type which will remain the same even if you edit your submission from the server.
Here is a sample of how it would look like when you make edits to the submission through the server. The original input is stored safely under the hidden question (unchanged) even with multiple edits to the submission.
Reference XLSForm:
Once function.xlsx (8.6 KB)