i'm having a thought , that a text input box which has a dropdown and also able to enter text input with a single token, i am not sure this will works , needed guidance
Thanks in Advance.
Sanjai S
@sanjai If you haven't already found it, you can use allowCustomValues in the dropdown XML to allow a user to enter a custom text value as well as choosing from a dropdown.
The the dropdown section here
@sanjai If you haven't already found it, you can use allowCustomValues in the dropdown XML to allow a user to enter a custom text value as well as choosing from a dropdown.
The the dropdown section here
Hi @bowesmana ,
The allowCustomValues attribute indeed works well, but my requirement is slightly different. I have a text input box inside an HTML tag that receives cron input from the user, and this input is then processed with a JavaScript file. Here, I'm attempting to implement a dropdown where the user can either select from predefined cron expressions or enter their own.
Here's the content of my HTML tag:
<html>
<div>
<input type="text" id="cron_input" placeholder="Enter cron expression (optional)" name="cron_command" />
</div>
<div>
<p/>
<button id="save_cron_input" class="btn-primary">Save</button>
</div>
</html>
Is it possible to include a dropdown with allowCustomValue inside the HTML tag (as depicted in the image below)? I aim to provide some default cron expressions to the user.
The main goal of this configuration is to gather input (cron expressions) from the user. Additionally, I've included some basic cron expressions in the dropdown so the user can either select from them or enter their own.
Thank you for your assistance!
Unfortunately, I don't know if you can make <select> input take custom values, that's more of an html question if you are doing it inside the html panels - I am guessing you can probably make some JS to make this this work, but it's a guess.
Thank you @bowesmana . I'm also considering implementing the select value in JavaScript 🙂. Appreciate your time.
@bowesmana thanks . its helpful