I want to remove NaN from the Form

Hi,
Its shows NaN, But when I put the date it working. I want to remove NaN from the Form. Please help.
Hasib

Welcome to the community, @testwbd! You could use the coalesce function as outlined in this post discussed previously:

Feel free to go through these posts discussed previously, which discuss the coalesce function.

Thank You Kal_Lam for the solution.
I am wondering date calculation Start date to End Date.
See the formula calculation I have use int(decimal-date-time(${EndMission}) - decimal-date-time(${StartMission})) + 1
As next Note Question: Duration of your mission NaN Day(s)
if the NaN replace by β€œ0” then it looks good!

@testwbd, maybe you will need to share the relevant part of the XLSForm so that the community should be able to help you out.

Dear concern,

I have attached my XLSForm. Please see

Mission to [BGD CMU].xlsx (17.2 KB)

@testwbd, you could use this workaround (to skip the note question unless there is an entry in the date) as shown in the image below:

Reference XLSForm:

Mission to [BGD CMU].xlsx (17.0 KB)

Thank you!
Now it’s working. But need to put [β€œβ€] : ${StartMission}!=β€œβ€ and ${EndMission}!=β€œβ€ double not single.
Thanks again for your quick support.

1 Like

Thank you! Now it’s working. But need to put [β€œβ€] : ${StartMission}!=β€œβ€ and ${EndMission}!=β€œβ€ double not single.

Thanks again for your quick support.

1 Like

@testwbd, :clap: :heart: :partying_face: