-
1. Re: Editable Dropdown Box Issue
lrosenth Jun 17, 2014 12:08 PM (in response to hunterhart19900)OK - you can easily do this with JavaScript in the PDF.
-
2. Re: Editable Dropdown Box Issue
hunterhart19900 Jun 17, 2014 12:31 PM (in response to lrosenth)Thank you, unfortunately JavaScript is not "easily done" for me. I was looking for something a little easier. But if that is the only way, it looks like i better be learning JavaScript.lrosenth
-
3. Re: Editable Dropdown Box Issue
George_Johnson Jun 19, 2014 6:49 PM (in response to hunterhart19900)The custom Validate script of the combo box can be as simple as:
// Custom Validate script for combo box (dropdown)
event.target.insertItemAt(event.value);
-
4. Re: Editable Dropdown Box Issue
try67 Jul 6, 2014 3:25 AM (in response to George_Johnson)I would add a check to see if the value is not already included in the list, to prevent having duplicated each time you make a selection.
-
5. Re: Editable Dropdown Box Issue
George_Johnson Jul 6, 2014 10:15 AM (in response to try67)That's not needed since duplicate entries are not created by that code, but the following is an improvement:
if (event.value) {
event.target.insertItemAt(event.value);
} else {
event.rc = false;
}
so that the user can't blank the field and get the resulting error.
-
6. Re: Editable Dropdown Box Issue
hunterhart199000 Jul 17, 2014 5:49 PM (in response to George_Johnson)What about deleting the fields once they are in the list? I would like to delete a single item as opposed to clearing the entire list if possible.
-
7. Re: Editable Dropdown Box Issue
lrosenth Jul 17, 2014 7:03 PM (in response to hunterhart199000)Have you read the SDK documentation?
-
8. Re: Editable Dropdown Box Issue
RussKBS Nov 18, 2014 11:50 AM (in response to hunterhart19900)Is there a way to save the change to the template so that future forms will include the addition? I'm thinking if just a save event is added, it will save all the other form fields, too.
-
9. Re: Editable Dropdown Box Issue
try67 Nov 20, 2014 4:06 PM (in response to RussKBS)To delete the currently selected item in a drop-down field you can use this command:
this.getField("FieldName").deleteItemAt(this.getField("FieldName").currentValueIndices);
All of these changes will be saved in the file when you save it. You don't need any special save command for that.




