I just stumbled on the action group that provided some examples of prompts which triggered an idea. Id like to create a template to schedule volunteers at my church every weekend. There are 4 time slots per weekend and each slot has 5 volunteer positions. I’d like to quickly create an email to tell the volunteer group how many open positions are left for each time slot.
Im thinking I could use the Select prompt action that @agiletortoise posted and use the multiple selection prompt. My issue is, how do I combine the selections with text? So if we needed help at timeslots 1,3 and 4, the output would look like:
Hi. Can anyone help with this? Or point me in the are direction?
I think what might give you the fastest entry is simply a pop-up of buttons to tap on that repeats four times allowing you to choose between 0 and 5 positions to fill. Otherwise I think you would end up with lots of tapping and scrolling.
let strList = "";
let promptSlots = Prompt.create();
promptSlots.message = "How many positions are available to be filled?"
for (intCount = 1; intCount < 5; intCount ++)
promptSlots.title = "Timeslot " + intCount;
if (promptSlots.buttonPressed != "None")
strList += "Timeslot " + intCount + " has " + promptSlots.buttonPressed.toLowerCase() + " unfilled position";
if(promptSlots.buttonPressed == "One")
strList += ".\n";
strList += "s.\n";
Hope that helps.
Thank you. I will give it a try answer let you know.
If you can’t get it working in Drafts, you could also use Workflow to do it, and building the workflow would be easier than trying to figure out out the JS if you don’t know already know it (like me!).