Yeah, I've looked at how dropdown input is organized - it seems that you
first generate possible values making the list of tags, and after
that mark the currently selected option with attribute ":selected". This
way, if I need totally dinamic behavior of an input, I have to patch the
php side too,
Hi Yury,
How the current value is specifically set depends on which input it is...
but the inputs themselves don't know anything other than the parameters
that they're called with (which should be enough, of course).
-Yaron
On Tue, Jul 29, 2014 at 3:12 PM, Yury Katkov wrote:
> Hi!
> This part
Hi!
This part I know. But I meant the javascript side - how the current value
is loaded there? Is there a method that allows me to retrieve the current
template field value whil I'm in js?
-
Yury Katkov
On Tue, Jul 29, 2014 at 5:49 PM, Yaron Koren wrote:
> Hi Yury,
>
> Well, each form inpu
Hi Yury,
Well, each form input's own file (contained in /includes/forminputs)
contains a getHTML() method, which in turn has a $cur_value parameter that
holds the current value. All those getHTML() methods are called from
SFFormPrinter::formHTML(), a monstrously large method that's really the
hear
> Yes, that kind of autocomplatetion might require some kind of custom
Javascript solutio
I'm trying to develop exactly that. For now I'm able to load the list of
tags for all my dropdown, but I can't figure out, how to
initialize my dropdown with the current value. Yaron, what function
populates
Hi Yury,
Oh... that's a lot of files! Yes, that kind of autocomplatetion might
require some kind of custom Javascript solution. Although, if the goal is
to have a wiki page for each of those files, another option is to just
create a page for each file automatically, with the first 2-4 of those
tem
Hi Yaron!
> (First, it doesn't matter that much, but this question should probably
have been sent to the SMW users list.)
Sorry... I thought it requires the creation of form input or patching the
SF, so I asked it here.
Thanks for the way, but it will not work for me because:
1) we will probably
Hi Yury,
(First, it doesn't matter that much, but this question should probably have
been sent to the SMW users list.)
You didn't explicitly say it, but I'm guessing that (a) the set of file
names to be autocompleted on is all the files contained in that file
server, and (b) this information is n
Hi Yaron, everyone!
Very often I need to perform some actions while being inside the form. For
example right now I have this form:
http://i.imgur.com/cYNHSFN.png
I need the following behavior:
1) User picks the file server from the dropdown
2) The form sends the js-query to the server and retriev