Default Response not working

Hello, I am building a survey had a question type text, and I am using Default Response to show “NY-School” as default response, but it is not working and question has no default response in the text answer.
I usually use Default Response and I didn’t face any problem related before,
Thank you in advance

Welcome to the community, @rozah! Would you mind sharing with us the extract (section of your xlsform) that holds the default response? Maybe we could also test the same at our end to see what is wrong.

type name label default required

text Your_School_Code name NY-School- true

excuse me to post the code in that way since the new members can’t upload files ,
As a clarification, School code will be produced from the default part and number of school entered by the user

@rozah, would you mind uploading the part of your xlsform form now? You should be able to upload it. If you have issues, please refresh your page.

NY-school.xlsx (5.8 KB)
Kindly check the attachment

@rozah, you could do this as outlined in the image shared below:

In the survey tab of your xlsform:

Image 1

Data entry screen as seen in Enketo:

Reference xlsform:

NY-school.xlsx (10.1 KB)

Note: When you want a - to be displayed in the text you will need to use the opening " and closing " around the text.

Thank you !

1 Like