Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
tag_info variable value retrieval
nugget_shark
Guys,
I need help retrieving the values of some tag_info variables I'm creating....
There part of a workflow script where I'm trying to compare the values of the tag values entered against some defaults....
Have tried _TAG_ and _INSERT_ but to no avail...
Thanks much!!!
Find more posts tagged with
Comments
jbonifaci
Please post the wft and/or the snippets of code from the wft that you are having problems with.
~Jeff
nugget_shark
Jeff,
Here's a snippet of code where I'm attempting to extract the values of the tab_info variables and assign them to new variables to compare
with the defaults later in the code...
Not getting the correct values for either tag variable....
Doug
===============
TAG_info(
# Name Of Job
wf_name => [
html => "<input type='text' size='60' value='Update Content on Site'>",
label => 'Name',
error_msg => 'Please enter a Job Name',
is_required => "true",
],
# Description
wf_desc => [
html => "<textarea rows='5' cols='60'>Update Content on Site</textarea>",
label => 'Job Description',
error_msg => 'Please enter a Job Description',
is_required => "true",
],
# Do they want to add additional files
addfiles => [
html => "<input type='radio' value='true'>Yes, add files</input>" .
"<input type='radio' value='false'>No, all files attached</input>",
is_required => "true",
label => "Add additional files",
],
# get the published date
task_due_date => [
html => "$pickdate",
label=> "Publication Date",
valid_input => 'checkDate($_,0)',
error_msg => 'The date must be a valid date',
is_required => "true",
],
# get the published time
task_due_time => [
html => "<input type='text' size='8' value='$default_time'",
label=> "Publication Time",
valid_input => '/^(0?[1-9]|1[0-2]):[0-5][0-9]\s[AP]M$/',
error_msg => 'Please enter a publication Time. \n The time must be in the format HH:MM AM/PM',
is_required => "true",
],
);
my $test_date = __TAG__('task_due_date');
my $test_time = __TAG__('task_due_time');
printLog("*** task_due_date after selection = $test_date ***");
printLog("*** task_due_time after selection = $test_time ***");
jbonifaci
Try using __VALUE__ instead of __TAG__.
~Jeff
nugget_shark
Jeff,
Using __VALUE__ worked great!
Thanks...
Doug