Ended up going into the forms.py file and adding a 'defaults' entry under the node which referenced a specific item in the proper e55.
Found an example in the arches-hip forms.py under the description form (description_type.e55). Seems to do what I needed and likely a lot easier than messing with the select2 stuff, although if I am missing something let me know. Thanks though. On Thursday, March 23, 2017 at 4:07:17 PM UTC-7, Ryan Anderson wrote: > > Hi Andy, > > I'm not exactly sure how to solve your problem off the top of my head but > you may look into the initSelection method on the select2 dropdown. I found > the following post that you may or may not have uncovered already in your > research: > http://stackoverflow.com/questions/20939159/how-to-set-default-value-on-an-input-box-with-select2-initialized-on-it > > <http://www.google.com/url?q=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F20939159%2Fhow-to-set-default-value-on-an-input-box-with-select2-initialized-on-it&sa=D&sntz=1&usg=AFQjCNFGMH9KgFK_7NWH63BbUOkuEfcGKA> > > Hope this helps. > > On Wednesday, March 22, 2017 at 8:42:12 AM UTC-7, Andy Graham wrote: >> >> Was wondering what the easiest way would be to have a default value >> automatically populate one of the dropdown boxes (.E55) on a form when >> creating a new resource. Would obviously want this value to only show up >> when a new resources is created and not overwrite a value when editing a >> previously created resource. Have poked around a bit but haven't come up >> with a solution. Any advice is appreciated. Thanks. >> >> Andy >> > -- -- To post, send email to [email protected]. To unsubscribe, send email to [email protected]. For more information, visit https://groups.google.com/d/forum/archesproject?hl=en --- You received this message because you are subscribed to the Google Groups "Arches Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
