Enforcing Max/Min Value on Data entry Form

Can I enforce Max/Min values on a data entry form. Validation is not giving me much flexibility. I want the data entry form not to save when a value entered is outside a range (Min-Max). How do I do that?

I am sure HTML 5 attributes should help. Just go to the source of the data entry form and add min and max attributes

···

On Wed, Sep 10, 2014 at 11:25 AM, Morina Matasi morena.motsieng@gmail.com wrote:

Can I enforce Max/Min values on a data entry form. Validation is not giving me much flexibility. I want the data entry form not to save when a value entered is outside a range (Min-Max). How do I do that?


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


ICT Warehouse (Pvt) Ltd - “The Stockist of e-nnovation”
7 Chelmsford Belgravia, Harare
Tel: +263-8644-102349
Cell: +263-772-268353
Website: www.ict.co.zw

Innovative solutions in Web Design and E-Commerce, Software Engineering, Mobile and Bulk SMS Solutions, Graphic Design and Printing, General ICT Solutions and Consultancy.

This doesnt work. Those attributes disappear when I save the form.

···

On Wed, Sep 10, 2014 at 11:36 AM, Moses Marimo marimo@ict.co.zw wrote:

I am sure HTML 5 attributes should help. Just go to the source of the data entry form and add min and max attributes

On Wed, Sep 10, 2014 at 11:25 AM, Morina Matasi morena.motsieng@gmail.com wrote:

Can I enforce Max/Min values on a data entry form. Validation is not giving me much flexibility. I want the data entry form not to save when a value entered is outside a range (Min-Max). How do I do that?


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

ICT Warehouse (Pvt) Ltd - “The Stockist of e-nnovation”
7 Chelmsford Belgravia, Harare
Tel: +263-8644-102349
Cell: +263-772-268353
Website: www.ict.co.zw

Innovative solutions in Web Design and E-Commerce, Software Engineering, Mobile and Bulk SMS Solutions, Graphic Design and Printing, General ICT Solutions and Consultancy.

Dear Morina,

The HTML 5 attributes will help if the form is a custom form, that way you can persist the code.

Thanks.

···

On Wed, Sep 10, 2014 at 12:48 PM, Morina Matasi morena.motsieng@gmail.com wrote:

This doesnt work. Those attributes disappear when I save the form.


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp


Alex Tumwesigye

Teaching Assistant,
Department of Electrical and Computer Engineering
College of Engineering, Design, Art and Technology, Makerere University

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems - DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don’t want to be anything other than what I have been - one tree hill "

On Wed, Sep 10, 2014 at 11:36 AM, Moses Marimo marimo@ict.co.zw wrote:

I am sure HTML 5 attributes should help. Just go to the source of the data entry form and add min and max attributes

On Wed, Sep 10, 2014 at 11:25 AM, Morina Matasi morena.motsieng@gmail.com wrote:

Can I enforce Max/Min values on a data entry form. Validation is not giving me much flexibility. I want the data entry form not to save when a value entered is outside a range (Min-Max). How do I do that?


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

ICT Warehouse (Pvt) Ltd - “The Stockist of e-nnovation”
7 Chelmsford Belgravia, Harare
Tel: +263-8644-102349
Cell: +263-772-268353
Website: www.ict.co.zw

Innovative solutions in Web Design and E-Commerce, Software Engineering, Mobile and Bulk SMS Solutions, Graphic Design and Printing, General ICT Solutions and Consultancy.

Thanks. Actually it was not overriding, but just re-arranging the attributes. My apologies. I am actually using custom form. BUT, with the attributes there, it does not work stil. It doesn’t obey the range.

···

On Wed, Sep 10, 2014 at 11:51 AM, Alex Tumwesigye atumwesigye@gmail.com wrote:

Dear Morina,

The HTML 5 attributes will help if the form is a custom form, that way you can persist the code.

Thanks.

On Wed, Sep 10, 2014 at 12:48 PM, Morina Matasi morena.motsieng@gmail.com wrote:

This doesnt work. Those attributes disappear when I save the form.


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Alex Tumwesigye

Teaching Assistant,
Department of Electrical and Computer Engineering
College of Engineering, Design, Art and Technology, Makerere University

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems - DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don’t want to be anything other than what I have been - one tree hill "

On Wed, Sep 10, 2014 at 11:36 AM, Moses Marimo marimo@ict.co.zw wrote:

I am sure HTML 5 attributes should help. Just go to the source of the data entry form and add min and max attributes

On Wed, Sep 10, 2014 at 11:25 AM, Morina Matasi morena.motsieng@gmail.com wrote:

Can I enforce Max/Min values on a data entry form. Validation is not giving me much flexibility. I want the data entry form not to save when a value entered is outside a range (Min-Max). How do I do that?


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

ICT Warehouse (Pvt) Ltd - “The Stockist of e-nnovation”
7 Chelmsford Belgravia, Harare
Tel: +263-8644-102349
Cell: +263-772-268353
Website: www.ict.co.zw

Innovative solutions in Web Design and E-Commerce, Software Engineering, Mobile and Bulk SMS Solutions, Graphic Design and Printing, General ICT Solutions and Consultancy.

Morina,

It should work if the browser is supported.

May be you could look at JQuery as an option since DHIS2 preloads with JQuery already added for you.

See example http://jqueryvalidation.org/max-method/

Just write you JQuery script below and it should work.

AT

···

On Wed, Sep 10, 2014 at 1:09 PM, Morina Matasi morena.motsieng@gmail.com wrote:

Thanks. Actually it was not overriding, but just re-arranging the attributes. My apologies. I am actually using custom form. BUT, with the attributes there, it does not work stil. It doesn’t obey the range.


Alex Tumwesigye

Technical Advisor - DHIS2,
Ministry of Health/AFENET

Kampala

Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems - DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don’t want to be anything other than what I have been - one tree hill "

On Wed, Sep 10, 2014 at 11:51 AM, Alex Tumwesigye atumwesigye@gmail.com wrote:

Dear Morina,

The HTML 5 attributes will help if the form is a custom form, that way you can persist the code.

Thanks.

On Wed, Sep 10, 2014 at 12:48 PM, Morina Matasi morena.motsieng@gmail.com wrote:

This doesnt work. Those attributes disappear when I save the form.


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Alex Tumwesigye

Teaching Assistant,
Department of Electrical and Computer Engineering
College of Engineering, Design, Art and Technology, Makerere University

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems - DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don’t want to be anything other than what I have been - one tree hill "

On Wed, Sep 10, 2014 at 11:36 AM, Moses Marimo marimo@ict.co.zw wrote:

I am sure HTML 5 attributes should help. Just go to the source of the data entry form and add min and max attributes

On Wed, Sep 10, 2014 at 11:25 AM, Morina Matasi morena.motsieng@gmail.com wrote:

Can I enforce Max/Min values on a data entry form. Validation is not giving me much flexibility. I want the data entry form not to save when a value entered is outside a range (Min-Max). How do I do that?


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

ICT Warehouse (Pvt) Ltd - “The Stockist of e-nnovation”
7 Chelmsford Belgravia, Harare
Tel: +263-8644-102349
Cell: +263-772-268353
Website: www.ict.co.zw

Innovative solutions in Web Design and E-Commerce, Software Engineering, Mobile and Bulk SMS Solutions, Graphic Design and Printing, General ICT Solutions and Consultancy.

I have just tried it. Since there is no Form Object in the customs forms, I used jQuery’s .closest(‘form’) function but still, it does not work. The data entry form then goes into a loop trying to open.

I have also noted that if you double click on the text box of a form at run-time, it give a window were you can set min-max values, i need something like that at design time.

···

On Wed, Sep 10, 2014 at 12:22 PM, Alex Tumwesigye atumwesigye@gmail.com wrote:

Morina,

It should work if the browser is supported.

May be you could look at JQuery as an option since DHIS2 preloads with JQuery already added for you.

See example http://jqueryvalidation.org/max-method/

Just write you JQuery script below and it should work.

AT

On Wed, Sep 10, 2014 at 1:09 PM, Morina Matasi morena.motsieng@gmail.com wrote:

Thanks. Actually it was not overriding, but just re-arranging the attributes. My apologies. I am actually using custom form. BUT, with the attributes there, it does not work stil. It doesn’t obey the range.


Alex Tumwesigye

Technical Advisor - DHIS2,
Ministry of Health/AFENET

Kampala

Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems - DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don’t want to be anything other than what I have been - one tree hill "

On Wed, Sep 10, 2014 at 11:51 AM, Alex Tumwesigye atumwesigye@gmail.com wrote:

Dear Morina,

The HTML 5 attributes will help if the form is a custom form, that way you can persist the code.

Thanks.

On Wed, Sep 10, 2014 at 12:48 PM, Morina Matasi morena.motsieng@gmail.com wrote:

This doesnt work. Those attributes disappear when I save the form.


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Alex Tumwesigye

Teaching Assistant,
Department of Electrical and Computer Engineering
College of Engineering, Design, Art and Technology, Makerere University

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems - DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don’t want to be anything other than what I have been - one tree hill "

On Wed, Sep 10, 2014 at 11:36 AM, Moses Marimo marimo@ict.co.zw wrote:

I am sure HTML 5 attributes should help. Just go to the source of the data entry form and add min and max attributes

On Wed, Sep 10, 2014 at 11:25 AM, Morina Matasi morena.motsieng@gmail.com wrote:

Can I enforce Max/Min values on a data entry form. Validation is not giving me much flexibility. I want the data entry form not to save when a value entered is outside a range (Min-Max). How do I do that?


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

ICT Warehouse (Pvt) Ltd - “The Stockist of e-nnovation”
7 Chelmsford Belgravia, Harare
Tel: +263-8644-102349
Cell: +263-772-268353
Website: www.ict.co.zw

Innovative solutions in Web Design and E-Commerce, Software Engineering, Mobile and Bulk SMS Solutions, Graphic Design and Printing, General ICT Solutions and Consultancy.

Dear Morina,

Can you share your code?

One thing I know when you are applying JQuery to a given field/input in DHIS2, you may need to do something like this:

$(.entryfield).closest(blah blah) ---- This will apply the rule to all inputs

or

$(#qTuxHtIBhkU-mt3cAOIDf32-val).closest(blah blah) ---- This will apply the rule to specific input

For attributes in programs

You need $(#attr2056) where the number refers to the ID of the attribute

Look at this to give you more light (This is an extract fron DHIS2 V 2.13), you can inspect elements on your version to see how they are named:

Good luck.

···

On Wed, Sep 10, 2014 at 2:05 PM, Morina Matasi morena.motsieng@gmail.com wrote:

I have just tried it. Since there is no Form Object in the customs forms, I used jQuery’s .closest(‘form’) function but still, it does not work. The data entry form then goes into a loop trying to open.

I have also noted that if you double click on the text box of a form at run-time, it give a window were you can set min-max values, i need something like that at design time.


Alex Tumwesigye

Technical Advisor - DHIS2,
Ministry of Health/AFENET

Kampala

Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems - DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don’t want to be anything other than what I have been - one tree hill "

On Wed, Sep 10, 2014 at 12:22 PM, Alex Tumwesigye atumwesigye@gmail.com wrote:

Morina,

It should work if the browser is supported.

May be you could look at JQuery as an option since DHIS2 preloads with JQuery already added for you.

See example http://jqueryvalidation.org/max-method/

Just write you JQuery script below and it should work.

AT

On Wed, Sep 10, 2014 at 1:09 PM, Morina Matasi morena.motsieng@gmail.com wrote:

Thanks. Actually it was not overriding, but just re-arranging the attributes. My apologies. I am actually using custom form. BUT, with the attributes there, it does not work stil. It doesn’t obey the range.


Alex Tumwesigye

Technical Advisor - DHIS2,
Ministry of Health/AFENET

Kampala

Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems - DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don’t want to be anything other than what I have been - one tree hill "

On Wed, Sep 10, 2014 at 11:51 AM, Alex Tumwesigye atumwesigye@gmail.com wrote:

Dear Morina,

The HTML 5 attributes will help if the form is a custom form, that way you can persist the code.

Thanks.

On Wed, Sep 10, 2014 at 12:48 PM, Morina Matasi morena.motsieng@gmail.com wrote:

This doesnt work. Those attributes disappear when I save the form.


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Alex Tumwesigye

Teaching Assistant,
Department of Electrical and Computer Engineering
College of Engineering, Design, Art and Technology, Makerere University

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems - DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don’t want to be anything other than what I have been - one tree hill "

On Wed, Sep 10, 2014 at 11:36 AM, Moses Marimo marimo@ict.co.zw wrote:

I am sure HTML 5 attributes should help. Just go to the source of the data entry form and add min and max attributes

On Wed, Sep 10, 2014 at 11:25 AM, Morina Matasi morena.motsieng@gmail.com wrote:

Can I enforce Max/Min values on a data entry form. Validation is not giving me much flexibility. I want the data entry form not to save when a value entered is outside a range (Min-Max). How do I do that?


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

ICT Warehouse (Pvt) Ltd - “The Stockist of e-nnovation”
7 Chelmsford Belgravia, Harare
Tel: +263-8644-102349
Cell: +263-772-268353
Website: www.ict.co.zw

Innovative solutions in Web Design and E-Commerce, Software Engineering, Mobile and Bulk SMS Solutions, Graphic Design and Printing, General ICT Solutions and Consultancy.

···

On Wed, Sep 10, 2014 at 1:22 PM, Alex Tumwesigye atumwesigye@gmail.com wrote:

Dear Morina,

Can you share your code?

One thing I know when you are applying JQuery to a given field/input in DHIS2, you may need to do something like this:

$(.entryfield).closest(blah blah) ---- This will apply the rule to all inputs

or

$(#qTuxHtIBhkU-mt3cAOIDf32-val).closest(blah blah) ---- This will apply the rule to specific input

For attributes in programs

You need $(#attr2056) where the number refers to the ID of the attribute

Look at this to give you more light (This is an extract fron DHIS2 V 2.13), you can inspect elements on your version to see how they are named:

Good luck.

On Wed, Sep 10, 2014 at 2:05 PM, Morina Matasi morena.motsieng@gmail.com wrote:

I have just tried it. Since there is no Form Object in the customs forms, I used jQuery’s .closest(‘form’) function but still, it does not work. The data entry form then goes into a loop trying to open.

I have also noted that if you double click on the text box of a form at run-time, it give a window were you can set min-max values, i need something like that at design time.


Alex Tumwesigye

Technical Advisor - DHIS2,
Ministry of Health/AFENET

Kampala

Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems - DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don’t want to be anything other than what I have been - one tree hill "

On Wed, Sep 10, 2014 at 12:22 PM, Alex Tumwesigye atumwesigye@gmail.com wrote:

Morina,

It should work if the browser is supported.

May be you could look at JQuery as an option since DHIS2 preloads with JQuery already added for you.

See example http://jqueryvalidation.org/max-method/

Just write you JQuery script below and it should work.

AT

On Wed, Sep 10, 2014 at 1:09 PM, Morina Matasi morena.motsieng@gmail.com wrote:

Thanks. Actually it was not overriding, but just re-arranging the attributes. My apologies. I am actually using custom form. BUT, with the attributes there, it does not work stil. It doesn’t obey the range.


Alex Tumwesigye

Technical Advisor - DHIS2,
Ministry of Health/AFENET

Kampala

Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems - DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don’t want to be anything other than what I have been - one tree hill "

On Wed, Sep 10, 2014 at 11:51 AM, Alex Tumwesigye atumwesigye@gmail.com wrote:

Dear Morina,

The HTML 5 attributes will help if the form is a custom form, that way you can persist the code.

Thanks.

On Wed, Sep 10, 2014 at 12:48 PM, Morina Matasi morena.motsieng@gmail.com wrote:

This doesnt work. Those attributes disappear when I save the form.


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Alex Tumwesigye

Teaching Assistant,
Department of Electrical and Computer Engineering
College of Engineering, Design, Art and Technology, Makerere University

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems - DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don’t want to be anything other than what I have been - one tree hill "

On Wed, Sep 10, 2014 at 11:36 AM, Moses Marimo marimo@ict.co.zw wrote:

I am sure HTML 5 attributes should help. Just go to the source of the data entry form and add min and max attributes

On Wed, Sep 10, 2014 at 11:25 AM, Morina Matasi morena.motsieng@gmail.com wrote:

Can I enforce Max/Min values on a data entry form. Validation is not giving me much flexibility. I want the data entry form not to save when a value entered is outside a range (Min-Max). How do I do that?


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

ICT Warehouse (Pvt) Ltd - “The Stockist of e-nnovation”
7 Chelmsford Belgravia, Harare
Tel: +263-8644-102349
Cell: +263-772-268353
Website: www.ict.co.zw

Innovative solutions in Web Design and E-Commerce, Software Engineering, Mobile and Bulk SMS Solutions, Graphic Design and Printing, General ICT Solutions and Consultancy.

Morina,

For your case, this should be the valid script. Do not use .closest(“form”) because there is no form name “form”

The above script will set all maximum values to the whole form as 5,

For specific input, using the validation plugin may require more work but this should work

···

On Wed, Sep 10, 2014 at 2:33 PM, Morina Matasi morena.motsieng@gmail.com wrote:


Alex Tumwesigye

Technical Advisor - DHIS2,
Ministry of Health/AFENET

Kampala

Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems - DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don’t want to be anything other than what I have been - one tree hill "

On Wed, Sep 10, 2014 at 1:22 PM, Alex Tumwesigye atumwesigye@gmail.com wrote:

Dear Morina,

Can you share your code?

One thing I know when you are applying JQuery to a given field/input in DHIS2, you may need to do something like this:

$(.entryfield).closest(blah blah) ---- This will apply the rule to all inputs

or

$(#qTuxHtIBhkU-mt3cAOIDf32-val).closest(blah blah) ---- This will apply the rule to specific input

For attributes in programs

You need $(#attr2056) where the number refers to the ID of the attribute

Look at this to give you more light (This is an extract fron DHIS2 V 2.13), you can inspect elements on your version to see how they are named:

Good luck.

On Wed, Sep 10, 2014 at 2:05 PM, Morina Matasi morena.motsieng@gmail.com wrote:

I have just tried it. Since there is no Form Object in the customs forms, I used jQuery’s .closest(‘form’) function but still, it does not work. The data entry form then goes into a loop trying to open.

I have also noted that if you double click on the text box of a form at run-time, it give a window were you can set min-max values, i need something like that at design time.


Alex Tumwesigye

Technical Advisor - DHIS2,
Ministry of Health/AFENET

Kampala

Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems - DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don’t want to be anything other than what I have been - one tree hill "

On Wed, Sep 10, 2014 at 12:22 PM, Alex Tumwesigye atumwesigye@gmail.com wrote:

Morina,

It should work if the browser is supported.

May be you could look at JQuery as an option since DHIS2 preloads with JQuery already added for you.

See example http://jqueryvalidation.org/max-method/

Just write you JQuery script below and it should work.

AT

On Wed, Sep 10, 2014 at 1:09 PM, Morina Matasi morena.motsieng@gmail.com wrote:

Thanks. Actually it was not overriding, but just re-arranging the attributes. My apologies. I am actually using custom form. BUT, with the attributes there, it does not work stil. It doesn’t obey the range.


Alex Tumwesigye

Technical Advisor - DHIS2,
Ministry of Health/AFENET

Kampala

Uganda

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems - DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don’t want to be anything other than what I have been - one tree hill "

On Wed, Sep 10, 2014 at 11:51 AM, Alex Tumwesigye atumwesigye@gmail.com wrote:

Dear Morina,

The HTML 5 attributes will help if the form is a custom form, that way you can persist the code.

Thanks.

On Wed, Sep 10, 2014 at 12:48 PM, Morina Matasi morena.motsieng@gmail.com wrote:

This doesnt work. Those attributes disappear when I save the form.


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Alex Tumwesigye

Teaching Assistant,
Department of Electrical and Computer Engineering
College of Engineering, Design, Art and Technology, Makerere University

IT Consultant - BarefootPower Uganda Ltd, SmartSolar, Kenya

IT Specialist (Servers, Networks and Security, Health Information Systems - DHIS2 ) & Solar Consultant

+256 774149 775, + 256 759 800161

"I don’t want to be anything other than what I have been - one tree hill "

On Wed, Sep 10, 2014 at 11:36 AM, Moses Marimo marimo@ict.co.zw wrote:

I am sure HTML 5 attributes should help. Just go to the source of the data entry form and add min and max attributes

On Wed, Sep 10, 2014 at 11:25 AM, Morina Matasi morena.motsieng@gmail.com wrote:

Can I enforce Max/Min values on a data entry form. Validation is not giving me much flexibility. I want the data entry form not to save when a value entered is outside a range (Min-Max). How do I do that?


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

ICT Warehouse (Pvt) Ltd - “The Stockist of e-nnovation”
7 Chelmsford Belgravia, Harare
Tel: +263-8644-102349
Cell: +263-772-268353
Website: www.ict.co.zw

Innovative solutions in Web Design and E-Commerce, Software Engineering, Mobile and Bulk SMS Solutions, Graphic Design and Printing, General ICT Solutions and Consultancy.