Setting Field Value as Default in a Repeater

395
3
02-23-2018 04:07 AM
JohnMcConalogue
New Contributor III

I have a drop-down list with 3 values and I want to set one value to be default, I can do this but it seems no to work when the field is within a Repeater.

How can I do this within a Repeater?

Thanks.

Tags (1)
0 Kudos
3 Replies
JamesTedrick
Esri Esteemed Contributor

Hi John,

I'm able to set a default value for a select_one within repeat section successfully.  Can you provide the example that does not work?

0 Kudos
JohnMcConalogue
New Contributor III

Here is example that doesn't work.

The highlighted line is the field I am trying to set the default to "Low".

This field has an appearance of "minimal".

begin repeatequip_assessEquipment Assessment
select_one equipmentpark_equip<b>Equipment</b>
select_one pass_failpass_failPass/Fail
select_multiple criteriaarea_publicFail Criteria
textfailure_reasonReason for Failure
select_one riskriskassessmentRisk 
end repeat

Thanks.

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Hi John,

Again, I am able to get this to work.  See the attached sample.  One thing to note is that he default must be the 'name' value of the choice, not the label.

0 Kudos