You are viewing limited content. For full access, please sign in.

Question

Question

javascript for collections

asked on August 7, 2018

I work with production logs for a low income food program (CACFP).

I wanted to see if there was a way that I could have the Weekly Breakfast (1 - 5 weeks) have a java script code that when completing the form will auto populate to the Breakfast used collection. Ive included a java script code from before that I used; however, it doesn't seem to populate to the collection side of the form.

 

Example: I am completing the breakfast menu for week 1 on Monday. I want to see if I can have all the breakfast items selected for that meal automatically add themselves to the breakfast used section. Then I can add the amounts of food used later on.

Thank you for any and all help with this.

Screen Shot 2018-08-07 at 10.14.04 AM.png
Screen Shot 2018-08-07 at 10.16.38 AM.png
0 0

Replies

replied on August 7, 2018

Is the problem you're having that the copying works when there's only one food item served at breakfast, but it doesn't work when there's more than one? I'm assuming you applied the custom CSS class "servein" to the "Food Served" field, and the CSS class "serve" to the "Food Item Used" field.

0 0
replied on August 7, 2018

Its under the javascript side. When I applied this script nothing happened, normally it has worked on just about every field with the exception of tables/collections.

Screen Shot 2018-08-07 at 1.51.39 PM.png
0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.