POST
|
@DerekLaw @IsmaelChivite any ideas? It is worth knowing that when I update the record I used Inbox.
... View more
08-09-2021
11:55 AM
|
0
|
0
|
256
|
POST
|
Hello Anneka_France, This is an idea, I used the JS capabilities of survey123 to count items in an Array based on material. Here is an example code: function plasticCounter(materialArray){ let plastic = 0; for(let i =0; i < matArray.length; i++){ if(matArray[i] = "plastic"){ plastic++;} } return plastic; } Important Notes: 1. The code has lots of room for improvement for example you can make a function to handle all of your materials and also pass the material filter. 2. there are also other issues that will come up with this for example, what happens when someone deletes a value from the repeat you would need to handle that in your material count. 3. I am positive you can achieve this logic without the use of JS(which would be better). 4. This is not meant to work within the repeat. Again, this is a rough draft hope it gives you some ideas, and yes! this is possible within S123
... View more
07-16-2021
10:27 AM
|
0
|
0
|
397
|
POST
|
Hello, I was working on a form that contains a time field within a repeat. The issue that I am encountering is that after the submission of the survey, the data gets saved properly but if I am trying to make an update to any field and re-submit, the values in the Time field will be deleted starting at page 2. none of the other fields will be affected except for that one. I think what could be happening is that for some reason the Time field value is not getting pulled from the database for pages that are not rendered (which is weird since all of the other ones do) leaving that field blank, so it would replace the values in the database with blanks. Any ideas would be really appreciated. Relevant Notes: 1. The repeat is set to query allowUpdates=true 2. DateTime type will not behave this way. 3. If you go through the pages the values will be stored, if you don't and make a change the values will be removed.
... View more
07-15-2021
09:12 AM
|
0
|
1
|
297
|
POST
|
Oh, I will definitely test that. Thanks a lot for the help James
... View more
04-21-2020
03:14 PM
|
0
|
0
|
423
|
POST
|
I am trying to implement an option for the select_multiple type that lets me select everything, so instead of making the user go through all the options just one option that will select them all. The main issue that I have encountered right now is that I am not able to edit the true/false value of an option. the only work around that I have found is to use default and that way I can set the initial value for the options: Example: MyList Choices: 1. one 2. two 3.three 4.All basically if you select "All" or option 4 all other options should get selected. Thanks a lot for your help
... View more
03-03-2020
12:04 PM
|
0
|
2
|
480
|
Online Status |
Offline
|
Date Last Visited |
08-12-2021
10:59 AM
|