I am trying to create a tiddler based on value stored in a field on the
tiddler... I am not sure what I am doing wrong but it is not working even
though same value when just entered plainly on tiddler returns correct
value.
I will explain what I am trying to achieve:
1. I have a tiddler with a button named "New Project"
2. On click of the button a modal is opened for user to enter the
Project Name.
3. This project Name is saved in a field named project_name_from_modal
Now at this point I have tried both from the modal as well as the page with
the button following code but it does not get the value of the
project-name. Instead it takes the value used to invoke the field value
<$action-createtiddler
$basetitle={{!!project_name_from_modal}}
tags= 'Projects'
$savetitle="!!project_home_page_name_created"
$overwrite='yes'/>
I then tried the variation to this using a macro on modal as shown below:
\define project_home_page_name() {{$(calling_page)$!!project_name_from_modal
}}
<$action-createtiddler
$basetitle=<<project_home_page_name>>
tags= 'Projects'
text='{{$:/newproject}}'
$savetitle="!!project_home_page_name_created"
$overwrite='yes'/>
I also tried the macro approach on the page with the button
\define project_home_page_name() {{!!project_name_from_modal}}
<$action-createtiddler
$basetitle=<<project_home_page_name>>
tags= 'Projects'
text='{{$:/newproject}}'
$savetitle="!!project_home_page_name_created"
$overwrite='yes'/>
Strangely if say I enter on the field in modal "ABC" the
{{!!project_name_from_modal}}
as well as macro <<project_home_page_name>> both show the output "ABC" but
when i try using them on action-createtiddler it just created a tiddler
with title {{!!project_name_from_modal}} instead of "ABC".
Please can someone guide me on what am I messing up here :(
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/de49bf70-b08f-4ba8-9296-c58e5ed125eco%40googlegroups.com.