Prevent Data Definition Drop Down from accepting 'Choose...'?
Hello:
I've have a drop down in a Data Defintion. It's required. By default it's first item is "Choose..." But when that item is selected, that's what gets stored. Is there anyway to prevent that?
<text type="dropdown" required="true" identifier="unit" label="Unit" help-text="Please select a Unit for this Person.">
.
.
.
</text>
And then, in a transformed asset created from that Data
Definition:
<div class="unit">Choose...</div>
Is there any way to force the user to choose something other than "Choose..."?
Thanks,
Greg
Discussions are closed to public comments.
If you need help with Cascade CMS please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Ryan Griffith on 03 Sep, 2015 12:30 PM
Hi Greg,
I was not able to reproduce this behavior in my local instance. Just to confirm, is one of your dropdown items literally
Choose...
? If so, you would need to remove that item, thus forcing the user to choose a value, since the field is required.Please let me know if you have any questions.
Thanks!
2 Posted by Greg Gomez on 03 Sep, 2015 09:39 PM
Hi, Ryan:
Nope, not that I can see.
Here's a snip from the Data Definition:
From an Index of Assets created via the DD above:
I've also included a screenshot of the Dropdown as it appears at create/edit time, with 'Choose...' selected.
Thanks!
Greg
3 Posted by Ryan Griffith on 04 Sep, 2015 11:57 AM
Hm, very interesting, Greg. I am definitely not seeing the
Choose...
placeholder in my local 7.12.5 instance using a similar DD. What version of Cascade are you currently running?Thanks!
4 Posted by Greg Gomez on 04 Sep, 2015 07:55 PM
Hey:
Heh. 7.12.5.
Let me know if you would like the complete DD.
Thanks,
Greg
5 Posted by nssabol on 04 Sep, 2015 07:59 PM
Hi All,
For what it’s worth, we will have 7.14.2 starting tomorrow morning. Not sure if that makes any difference.
Thank you and enjoy the holiday weekend,
-Neil
6 Posted by Greg Gomez on 04 Sep, 2015 08:00 PM
Hi, Neil:
Hm. I'll take another look next week.
Thanks!
Greg
7 Posted by Ryan Griffith on 08 Sep, 2015 11:50 AM
Hi Greg,
I believe I may have been able to reproduce the
Choose...
you are seeing.If you configure your dropdown with values/items (eg
Yes
andNo
) and enterChoose...
into the Default Value field, you will see the dropdown pre-filled withChoose...
, even though it is not a selectable option in the dropdown. When you have a moment, we can confirm this by editing that field and checking to see ifChoose...
is entered into the Default Value field.To resolve the issue you are seeing, your best bet would be to remove the
Choose...
from the Default Value field and save your Data Definition. Note: the value ofChoose...
will remain as the value in the structured data of the affected asset(s), so you will need to do one of the following:Please let me know if you have any questions.
Thanks!
8 Posted by Greg Gomez on 09 Sep, 2015 04:54 PM
Hi, Ryan:
Heh, spot on. Good call.
That was the issue.
All cleared up now.
Thanks so much!!
Greg
9 Posted by Ryan Griffith on 09 Sep, 2015 05:04 PM
Thank you for following up, Greg, I am glad to hear removing the default value did the trick.
I'm going to go ahead and close this discussion, please feel free to comment or reply to re-open if you have any additional questions.
Have a great day!
Ryan Griffith closed this discussion on 09 Sep, 2015 05:04 PM.