I've created a small toolbox where I use a GPString input with a filter list:
param1 <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>Parameter<SPAN class="punctuation token">(</SPAN>
displayName<SPAN class="operator token">=</SPAN><SPAN class="string token">"OSM tag value"</SPAN><SPAN class="punctuation token">,</SPAN>
name<SPAN class="operator token">=</SPAN><SPAN class="string token">"in_key"</SPAN><SPAN class="punctuation token">,</SPAN>
datatype<SPAN class="operator token">=</SPAN><SPAN class="string token">"GPString"</SPAN><SPAN class="punctuation token">,</SPAN>
parameterType<SPAN class="operator token">=</SPAN><SPAN class="string token">"Required"</SPAN><SPAN class="punctuation token">,</SPAN>
direction<SPAN class="operator token">=</SPAN><SPAN class="string token">"Input"</SPAN><SPAN class="punctuation token">,</SPAN>
multiValue<SPAN class="operator token">=</SPAN><SPAN class="token boolean">True</SPAN>
<SPAN class="punctuation token">)</SPAN>
param1<SPAN class="punctuation token">.</SPAN>filter<SPAN class="punctuation token">.</SPAN>list <SPAN class="operator token">=</SPAN> self<SPAN class="punctuation token">.</SPAN>getConfig<SPAN class="punctuation token">(</SPAN><SPAN class="string token">"tags"</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
the function getConfig reads a JSON and fills the values of the String input. Yet I want to enable the user to use an own string for the input at param1.
Is there any chance to do this with the given approach or do I need to create a second input for a user defined GPString?
Here is the issue on GitHub: allow manual input of tags and keys · Issue #16 · riccardoklinger/OSMquery · GitHub