I am trying to do something simple but can not find the correct code to get it to work.
I have a form with a button to create a tiddler based on values entered through this form.
If the newly created tiddler has fields Longitude and Latitude having non empty values, I want to add the tag $:/tags/GeoMarker
to the tag list for the tiddler.
I have tried many different things to no avail.
The latest iteration is
<$action-createtiddler
$basetitle={{{ [<gunID>] }}}
caption={{{ [<selectedstatename>addsuffix[ : ]addsuffix<cityTag>addsuffix[ - ]addsuffix{$:/TLS/type}] }}}
tags={{{ [[All Guns]] [<cityTag>] [<selectedstatename >] [<locationTag>] [<typeTag>] +[format:titlelist[]join[ ]] }}}
ID={{{ [<gunID>] }}}
CityTown={{$:/TLS/city}}
Location={{$:/TLS/location}}
State=<<selectedstatename>>
GunType={{$:/TLS/type}}
DateofManufacture={{$:/TLS/dateofmanufacture}}
Manufacturer={{$:/TLS/manufacturer}}
SerialNumber={{$:/TLS/serialnumber}}
WeightofProjectile={{$:/TLS/weightofprojectile}}
Range={{$:/TLS/range}}
pictureLink={{$:/TLS/pictureLink}}
Calibre={{$:/TLS/calibre}}
Longitude={{$:/TLS/longitude}}
Latitude={{$:/TLS/latitude}}
$template="$:/TLS/CreateTemplateGun">
<$action-navigate $to=<<createTiddler-title>>/>
</$action-createtiddler>
<%if [title[<gunID>]has[Longitude]has[Latitude]]%>
<$action-listops $tags="$:/tags/GeoMarker"/>
<%endif%>
I assume the %if
statement is not addressing the newly created tiddler.
could someone show me where I am going wrong.
thanks
bobj