Scripting in Infopath

S

savvy

I have been assigned to make a attendance marking form in Infopath.
this is the situation ...
I have 62 checkboxes(2 for each day)
Apart from this i have a text box ,
I need this text box to display value only on the end of the month
this needs to be done as follows...
the number of days present must be = no of check boxes checked / 2 (this
must be displayed there in the text box) If this task needs to be done via
javascript programming or any other way pls help me out ..
 
C

Clay Fox

Are the checkboxes in a repeating group? If they were then you could use 1
for true(checked) and 0 for false and then use the sum function to see if you
get 62. This would not require any code.
What about months with less then 31 days?

Have you thought about calculating the last day of the month rather than the
number of check boxes? This would probably require script but then you would
know exactly when the last day was. If you search on Datediff on
http://www.infopathdev.com you can find examples.

Does your form get the user's name so you know who is completing the form?

Hope this helps.
--
Thanks

Clay Fox

Qdabra Software
http://www.qdabra.com

InfoPathDev.Com
The Largest InfoPath Forum in the World
http://www.infopathdev.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top