dolibarr-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-dev] Formulaire interactif


From: Marc-Henri Pamiseux
Subject: [Dolibarr-dev] Formulaire interactif
Date: Wed, 14 Nov 2012 17:48:43 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

Hello,

I created a data entry page whose content is determined by the choice of
information in a combo box.

concrete example :
------------------
A dropdown list all publications available in a form of a magazine
subscription. Depending on the magazine selected, the text box on the
starting number of the subscription will be different.

According to the selected magazine in a dropdown offering all possible
publications, the first issue of publication that the subscriber will be
different depend on the publication to which it subscribes.
The input fields of the first number should be prepopulated based
publication. The input field of the first parution number should be
prepopulated according to the selected publication.

So the choice of a publication will determine the starting number of the
publication sent to the subscriber.

I think make an onChange event on the dropdown. This event invokes a
JavaScript function that will use the document.getElementById method to
change the value of an input field on the form.

Is there a good way to proceed in Dolibarr?
I mean, is there a page that may inspire me to accomplish this task?

Best regards
---------------------------------------------------------------------

Bonjour,

J'ai créé une page de saisie de données dont le contenu est conditionné
par le choix d'une information dans une liste déroulante.

Exemple concret :
-----------------
Un formulaire d'abonnement à une revue.
Selon la revue sélectionnée dans une liste déroulante proposant toutes
les publications possibles, le premier numéro de parution que recevra
l'abonné sera différent selon la publication à laquelle il s'abonne.
Le champs de saisie du premier numéro doit être pré-renseigné en
fonction de la parution.

Donc, le choix d'une publication va conditionner le numéro de départ de
la parution à envoyer à l'abonné.

Je pense effectuer un événement onChange sur la liste déroulante. Cet
événement invoquera une fonction JavaScript qui utilisera la méthode
document.getElementById pour modifier en conséquence la valeur d'une
zone de saisie du formulaire.

Existe-il une bonne manière de procéder dans Dolibarr ?
Je veux dire, existe-il une page qui pourrait m'inspirer pour réaliser
cette tâche ?

@ vous lire,
-- 
Marc-Henri Pamiseux
02.30.96.15.24

SARL Libricks
Maison de la technopole
6, rue Léonard de Vinci - BP 0119
53001 LAVAL Cedex

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]