Select to view content in your preferred language

How to set default value for custom form?

3764
7
04-14-2010 04:47 AM
EdwardBoesenberg
Emerging Contributor
I would like to set a default value for a text field in a custom form.  It looks like there is a place to set this in ArcPad Studio under the Values tab in Control Properties but that does not work.  I looked in the help file and it says that it needs a "simple expression".  What is a simple expression and can it be text?

The custom form is a manhole inspection form for sanitary sewers and is attached to this post.
Tags (3)
0 Kudos
7 Replies
BillCrawford
Emerging Contributor
Maybe something like  defaultvalue ="2"  ?
0 Kudos
EdwardBoesenberg
Emerging Contributor
I tried that it didn't work.
0 Kudos
BillCrawford
Emerging Contributor
Has to, is the syntax right? Look up EDIT in help. Should work the same under EDITFORM.
0 Kudos
EdwardBoesenberg
Emerging Contributor
When I set the default valve I get the error below when I edit the form for an existing feature

Script Error 800A03EA
Syntax Error
[Line 1, Column 6]
Source Text Unavailable
Cast Iron

"Cast Iron" is the default value I have set for a field.
0 Kudos
EdwardBoesenberg
Emerging Contributor
It seems the error has something to do with the space between the words Cast Iron, when I replaced the space with an "_" the error didn't occur but still NO default value set.
0 Kudos
BillCrawford
Emerging Contributor
Were "" marks used? I would think a space would work as long as it's enclosed by quotes.  The form stores results to a table doesn't it, similar to a database table? And I see a lot of combo boxes with default value set to "" or null. Maybe something elsewhere is over riding the new default your setting?
0 Kudos
NathanEide
Emerging Contributor
I would like to set a default value for a text field in a custom form.  It looks like there is a place to set this in ArcPad Studio under the Values tab in Control Properties but that does not work.  I looked in the help file and it says that it needs a "simple expression".  What is a simple expression and can it be text?

The custom form is a manhole inspection form for sanitary sewers and is attached to this post.


Could you attach the shapefile associated with your applet?  I'd like to test a default value using the shapefile you are using.

-Nate
0 Kudos