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
A functioning work-around was found:
{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}
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |