- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2016 02:19 PM
I have a duration field on a form that has the flag set for it to be mandatory, that's not the problem. The problem is when the form is loaded up, the duration field sections get populated with zeros and SN then sees the zeros as data having been entered into the field, so the mandatory flag gets greyed out right away. Here's what the duration field looks like right after the form has finished loading:
Any ideas on how to get around this?
I tried setting the default values for the duration field sections to be NULL in the dictionary attributes for the field, but that didn't work. I know that I could do an onSubmit script to check for all zeros on the duration field, but I would rather not have to do it that way. To me, this seems like a flaw in the way that SN has set the duration field type to function with it loading zeros in this way.
Thanks
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2016 11:37 AM
I didn't have anything set in the default value field at all.
I've since discovered that this is solely an issue with my personal DEV instance of SN, in my company's instances this is not a problem. I should have checked that first. Since this isn't an issue where I'm going to end up using this form, I'm not going to worry about it at all.
Thanks for trying to help sort this out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2016 03:10 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2016 03:24 PM
I have mine set as mandatory probably the same way as you, the Mandatory checkbox on the dictionary entry for the field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2016 04:12 PM
It happens if you have a default value to zero. Just check if you any default value and clear the default value field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2016 04:18 PM