developer.jelix.org is not used any more and exists only for history. Post new tickets on the Github account.
developer.jelix.org n'est plus utilisée, et existe uniquement pour son historique. Postez les nouveaux tickets sur le compte github.

Opened 12 years ago

Last modified 9 years ago

#754 confirmed enhancement

Add an attribute to deactivate by default some controls in the form

Reported by: mike Owned by:
Priority: low Milestone:
Component: jelix:forms Version: 1.1 beta 1
Severity: minor Keywords: jforms, controls
Cc: Blocked By:
Blocking: Documentation needed: no
Hosting Provider: Php version:

Description

With jForms 1.1 beta we can do in a controller something like that :

$form->deactivate('nom_du_control', true or false);

But it could be useful to do such a thing directly in the xml form file. For example:

<input ref="date_naissance" type="date" deactivate="true">
    <label locale="mymodule~date.naissance"/>
</input>

In this way we don't have to deactivate a control everytime if we want to use it only once. This could work on every controls including group and choice, like we can do with the method.

Change History (3)

comment:1 Changed 12 years ago by laurentj

  • Milestone changed from jelix 1.1 to Jelix 1.2

comment:2 Changed 11 years ago by laurentj

  • Milestone Jelix 1.2 beta deleted

comment:3 Changed 9 years ago by laurentj

  • Status changed from new to confirmed
Note: See TracTickets for help on using tickets.