HI
I am trying to begin a count at 50 rather than 1 and cant figure it out... likely because of the flu and massive headache I have
I know this should be very simple *sigh*
Can someone correct my code please...
Thank you in advance
Andreas
type | name | label | hint | guidance_hint | appearance | required | required_message | readonly | default | calculation | constraint | constraint_message | relevant | choice_filter | repeat_count | media::audio | media::image | bind::type | bind::esri:fieldType | bind::esri:fieldLength | bind::esri:fieldAlias | body::esri:style | bind::esri:parameters | parameters | body::accept | body::esri:visible | body::esri:inputMask | label::language (xx) | hint::language (xx) | guidance_hint::language (xx) | required_message::language (xx) | body::accuracyThreshold | bind::esri:warning | bind::esri:warning_message | bind::saveIncomplete |
hidden | CountSamples | Count Samples | hidden | count (${GetSampleLocation}) | esriFieldTypeInteger | ||||||||||||||||||||||||||||||
text | NewCount | New Count | minimal | 50 + ${CountSamples} | esriFieldTypeInteger | ||||||||||||||||||||||||||||||
text | SI_Name | <b>Sample Number</b> | minimal | if(${NewCount}< 10, "Wey2022" + ${IPADNo} + "000" + ${NewCount}, "Wey2022" + ${IPADNo} + "00" + ${NewCount}) | esriFieldTypeString | 20 |
Solved! Go to Solution.
What does not work? My guess would be when you set CountSamples to hidden type it does not know it is an int. The bindesri only changes the data submitted to AGOL and not while in the form.
2 options.
Set the bind::type to int.
Change CountSamples to Integer type then use the body::esri:visible column with a 0 in it (for false) to hide it.
Basically 123 treats everything it is not sure about as a string while in the form. You must tell it specifically it is a int.
Hope that helps
What does not work? My guess would be when you set CountSamples to hidden type it does not know it is an int. The bindesri only changes the data submitted to AGOL and not while in the form.
2 options.
Set the bind::type to int.
Change CountSamples to Integer type then use the body::esri:visible column with a 0 in it (for false) to hide it.
Basically 123 treats everything it is not sure about as a string while in the form. You must tell it specifically it is a int.
Hope that helps
Thanks
A