Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fields - Setting VISIBLE to FALSE sets field value to NULL despite defaultValue being set #543

Open
randomblink opened this issue Oct 12, 2017 · 2 comments

Comments

@randomblink
Copy link
Contributor

I have a STATUS field on my GeoForm.
I have set the defaultValue to 'Pending' and the visible to false.
The points I create have a STATUS of null.

I need the points to have a STATUS of 'Pending' like the defaultValue says.

If I set visible to true then the user can change the STATUS which I do not want.
Why does the visible setting basically nullify the fields value?

@driskull
Copy link
Member

driskull commented Nov 1, 2017

Hey @randomblink I believe it should be setting it to the null value. Do you have an example you could share?

@randomblink
Copy link
Contributor Author

For instance...

I use the GeoForm to populate the Local Government Model - Address - SiteAddressPoint.
I have figured out how to generate the SITEADDID field so that it is a different entry than what is done on an ArcGIS Desktop edit session. I used the 'defaultValue' attribute like so:

"defaultValue": "GF" + new Date().getTime(),

Now I currently can "locked": true and stop the enduser from editing this field.

But what I would PREFER is for the end user to not even see this field AND have it still generate the custom field "GF" + new Date().getTime() for the SITEADDID field.

So... to sum it up...

I can either get the defaultValue I want or make the field visible:false but not both. Once a field turns invisible the defaultvalue stops working. Can this be corrected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants