Select All options in a Form #333
-
Looking for a way to select all options in a Knack Form. Have a Form with a Multiple-select Field (connection to parent object). want to be able to select ALL checkboxes. thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 15 replies
-
Hi @jonathanTack, Nice to see you here!! A warm welcome to you :) I had something brewing for a while that does just that. I'd call it "Set Form Default Values". Keyword would be _sfdv. Let me check if I can do that now... Norm |
Beta Was this translation helpful? Give feedback.
-
Hi Johnathan,Great to see you here and really pleased to learn that you’ve been watching our videos. They can be a great cure for insomnia. 😂Knowing Normand he won’t rest until he has a solution. He has been completely amazing and helped me overcome a complex date/time calculation field with a new keyword.Hope you’re keeping safe and well. Still flying I presume
|
Beta Was this translation helpful? Give feedback.
-
I have something for you to try. Currently, it only works with Many to Many connected fields with the Checkbox format. I think that's what you need for now. Here's the keyword to be added in your form's description (or title):
You can use the field label as shown in your view, or its ID.
Give it a try in Dev mode and let me know if it works. Cheers, |
Beta Was this translation helpful? Give feedback.
-
To switch to Dev or other modes, see how this is done here: |
Beta Was this translation helpful? Give feedback.
-
I've added support for these field types:
You can use multiple groups like this to support many fields in a single form:
Norm |
Beta Was this translation helpful? Give feedback.
-
Following this thread, be interested if you got it working JT. Carl HolmesOn 1 Aug 2024, at 00:43, jonathanTack ***@***.***> wrote:
can do zoom rigth away ... what's your email? or email me ***@***.***
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Guys, I have decided to rename the keyword from _sfdv to _sfv (Set Field Value) Reasons:
I will do an official release in a few minutes, so change it in your app please. Norm |
Beta Was this translation helpful? Give feedback.
-
Jon, Remove the Dev code please. This could be the reason why it's not working anymore. Usually, Dev code is short lived since I use it all the time for various tests. Go back to Prod mode (letter "p"). Thanks for the nice comments, it's appreciated :) |
Beta Was this translation helpful? Give feedback.
-
I believe I can count this answered now! Thanks @cortexrd for your extensive and prompt help on this! Here's what I did: 2) If "Select All" is clicked, then the next Scene opens which looks identical, but all selections are ticked. Here, I use the keyword _sfv=[Communities,ktlAll]. The link is also now "Revert Selection", which returns the navigation to the original Current Selections scene. 3) If "Select None " is clicked, then the next Scene opens which looks identical, but all selections are blank. Here, I use the keyword _sfv=[Communities,]. The link is also now "Revert Selection", which returns the navigation to the original Current Selections scene. This is grand - thank you so much! |
Beta Was this translation helpful? Give feedback.
I believe I can count this answered now! Thanks @cortexrd for your extensive and prompt help on this!
Here's what I did:
1) The main form opens and presents the current selections, with no KTL keywords implemented. There are 2 links on this scene, namely "Select All" and "Select None". These are the toggles so that the user can decide here to make ad-hoc selections or All or None.
2) If "Select All" is clicked, then the next Scene opens which looks identical, but all selections are ticked. Here, I use the keyword _sfv=[Communities,ktlAll]. The link is also now "Revert Selection", which returns the navigation to the original Current Selections scene.
3) If "Select None " is clicked, then…