PCF-Controls icon indicating copy to clipboard operation
PCF-Controls copied to clipboard

Year selection dropdown does not work on number field

Open timothybohte opened this issue 1 year ago • 11 comments

I've added the Year selection dropdown on a Whole number field. I still get the options for Default month and day, which I do not fill out, since it's not a date field. Then I get an error, that the it's not in the right format. Doublechecked with adding the same field on the form without the component. It appears that it saves as a date instead for a number.

timothybohte avatar Oct 10 '23 08:10 timothybohte

even if it's not a date, can you fill default month and day and check wether the issue is still there?

MscrmTools avatar Oct 11 '23 11:10 MscrmTools

@MscrmTools @timothybohte I was trying to leverage Year drop down for the Number Field Type, it throws me an error as below.

The Error Details and Config of the Control as below

image

image

image

SatkunamSuganthar avatar Jan 05 '24 19:01 SatkunamSuganthar

Can you put a default day in the configuration too?

MscrmTools avatar Jan 05 '24 19:01 MscrmTools

@MscrmTools I have tried as per your suggestion, and hard refresh. it is still the same.

image

SatkunamSuganthar avatar Jan 05 '24 20:01 SatkunamSuganthar

I will be back from holidays next week. I will have a look then

MscrmTools avatar Jan 05 '24 20:01 MscrmTools

@MscrmTools Thanks for your response.

Meanwhile, I will try to debug the bundle.js using the fiddler and see if I can provide you any input on.

SatkunamSuganthar avatar Jan 05 '24 20:01 SatkunamSuganthar

@MscrmTools Is there any update on the control ? I tried to debug it and i could not as it is deployed as webpack and I had to debug with Fiddler.

SatkunamSuganthar avatar Jan 14 '24 23:01 SatkunamSuganthar

Can you try to not put any configuration in default month and default day?

MscrmTools avatar Jan 15 '24 12:01 MscrmTools

Hi @MscrmTools it is still same as I could not save the record as below

image

image

Were you able to replicate the Issue from your end? if it is not, I can help you with that

SatkunamSuganthar avatar Jan 17 '24 04:01 SatkunamSuganthar

I do not reproduce on my side so it's not easy to understand what is wrong here...

MscrmTools avatar Jan 17 '24 16:01 MscrmTools

OK. I will send you the steps to Reproduce it.

1 Create a New Field(Data Type - Whole Number) as below and set the Minimum and Maximum Values which are required.

image

image

  1. Place it on the Main Form and configure the control as you mentioned above (without default month and day) and publish it.
  2. Create a New Record and populate the Start Year Field., The Error Message will populate on select of the year as below

image

Im happy to go through with you through the screen share if you are unable to replicate

Regards Suga

SatkunamSuganthar avatar Jan 18 '24 03:01 SatkunamSuganthar