Loading...
 
Skip to main content

Datachannel / Tracker Functionality

Status
Closed
Subject
Datachannel / Tracker Functionality
Version
10.x
Category
  • Conflict of two features (each works well independently)
Feature
All / Undefined
Resolution status
New
Submitted by
RobertRasgorshek
Lastmod by
RobertRasgorshek, drsassafras
Rating
(0)
Description

The datachannel does not accept data when passed as a country selector tracker field. ( Without a JQ event ). Jyhem has a well explained document at http://doc.tiki.org/Data+Channels?highlight=datachannels . This example works only when there is a JQ event i.e. when the user makes a change to the fields explained. Though my use case is simliar, I am using the tracker plugin to pull from a user registration tracker to pre-fill fields for the user to verify, there are typically no changes to the fields and consequently the JQ doesn't trigger. Therefore I used the standard datachannel method of passing static fields "fieldName,external=fieldId" to pass the values to the datachannel. No worries there...the problem occurs when I try to pass a country selector field value to the datachannel. I am using the "hidden" method i.e. "fieldName,hidden=" and the JQ script $("inputname='Country'").val($('#page-data').find(":selected").text()); to pass this value. Inspection of the HTML output using a console indicates the form data are properly outputted i.e. input type="hidden" name="Country" value="United States" (end tags removed) but this is not passed or it is parsed out upon form submission. The importance of this functionality is obvious and I think it would greatly improve the use of the datachannel plugin.

Thanks in advance for your consideration.

Robert A Rasgorshek

showtiki info admin 12345

Workaround

A functioning work-around was found:

Copy to clipboard
{DATACHANNEL(channel="profile-1" returnURI="/" buttonLabel="Create" emptyCache="temp_cache")} Login, hidden= Name, external=ins_2 City, external=ins_5 State, external=ins_6 Country, hidden= {DATACHANNEL} {JQ()} // Report Values $("input[name='Login']").val( $("input[name='ins_1']").val() ); $("input[name='Country']").val( $("select[name='ins_8']").find("option[selected='selected']").val() ); {JQ}
Importance
8
Easy to solve?
5
Priority
40
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
4637
Created
Saturday 10 August, 2013 21:16:21 UTC
by RobertRasgorshek
LastModif
Wednesday 07 February, 2018 18:11:27 UTC


Show PHP error messages