Appointments icon indicating copy to clipboard operation
Appointments copied to clipboard

Multiple "extra" fields

Open nicolaheile opened this issue 3 years ago • 9 comments

Is it possible to extend the "extra field feature" to add multiple extra fields with JSON Code. This feature would be fantastic ;-)

nicolaheile avatar Jun 29 '21 18:06 nicolaheile

This would be nice, yeah

orcas-mgleich avatar Sep 06 '21 15:09 orcas-mgleich

Not sure if that solves your need, but in "Settings" -> Customize Public Page -> Advanced Setting -> Form designer (Beta) you can enter additional things. E.g. mine contains a (German): { "tag": "textarea", "label": "Ihr Anliegen", "placeholder": "Bitte geben Sie Ihr Anliegen in Stichworten ein" } to have people write down a reason for their appointment. I think (but am not sure) you can have multiple fields. See https://github.com/SergeyMosin/Appointments/issues/24#issuecomment-721103321 for details on the form designer.

UPDATE: Sorry, no it explicitely says "Multiple "extra" fields are not supported yet."

spaetz avatar Oct 18 '21 07:10 spaetz

Yes, one field is already very good, but I need some more. I would like to have my interviewees answer a few questions to prepare the meeting.

nicolaheile avatar Oct 18 '21 08:10 nicolaheile

@nicolaheile @orcas-mgleich @SergeyMosin #259 Here is a temporarily workaround to support multiple custom fields without a GUI - only Json. Tested with all field types mentioned here #24 Example for usage:

[
    {
      "tag": "select",
      "label": "Make your choice",
      "options":[
         "Cars",
         "Tanks",
         "Mermaids"
      ]
    } ,
  {
    "tag": "input",
    "type": "number",
    "label": "Enter number",
    "placeholder": "123456"
  } ,
  {
    "tag": "textarea",
    "label": "Enter text",
    "placeholder": "placeholder text"
  }
]

LadySolveig avatar Nov 22 '21 10:11 LadySolveig

I am not able to specify multiple custom fields as @LadySolveig specifies. Installed version: Appointments 1.11.7

CaptKrisp avatar Dec 15 '21 16:12 CaptKrisp

@CaptKrisp This functionality is not included in any releases yet. You need a custom fork from this PR #259

SergeyMosin avatar Dec 15 '21 16:12 SergeyMosin

@CaptKrisp I created a Patch from the commit and patch the two files with the modification from @LadySolveig - you can simply seach for the modified lines and patch it by your own after each update from the Appointments app. The Line numbers does not match after the last update.

nicolaheile avatar Dec 15 '21 20:12 nicolaheile

Thanks @SergeyMosin and @nicolaheile. I guess I didn't understand the #259 was a branch, as I'm not very adept at GitHub processes. However, I had even considered diving into the code to add the functionality of multiple custom fields but have little extra time these days.

Thanks very much for the patch @nicolaheile, I'll put it to use! :)

CaptKrisp avatar Dec 15 '21 20:12 CaptKrisp

Hi, tested with latest appoint 1.11.12 and its working with multiple fields... thanks

Taste-IT avatar Feb 13 '22 20:02 Taste-IT

Why isnt this merged yet?

iamkhalidbashir avatar Nov 24 '22 09:11 iamkhalidbashir

available in v1.14.6

SergeyMosin avatar Dec 04 '22 13:12 SergeyMosin