1

Topic: Require Location Name

How would I go about making the location name a required field on a data entry form? I presume that this is not a flag that I can set in the form definition, so do I need to go deep into the code?

I am fairly certain that this has been covered previously, but I cannot find it so apologies for any repetition!

Dave

Dave Slade
Senior IT & Records Officer,
15 Talbot Road, Talbot Green, Pontyclun, CF72 8AD
www.sewbrec.org.uk, www.sewbrecord.org.uk

2

Re: Require Location Name

Hi Dave
There are 2 options here. To add JS validation on the recording form, you can add the option in the form structure as follows:
@validation=["required"]

Or, on the survey dataset Edit page on the warehouse, there are tickboxes for additional fields to set as mandatory for this survey dataset. You'll need to clear caches for these to take effect.
Best wishes
John

John van Breda
Biodiverse IT

3

Re: Require Location Name

Thanks John - I'll try the @validation=["required"] first and see how that goes!
Dave

Dave Slade
Senior IT & Records Officer,
15 Talbot Road, Talbot Green, Pontyclun, CF72 8AD
www.sewbrec.org.uk, www.sewbrecord.org.uk