hi,
i’m new in lotusscript and lotus domino environment.
I’m looking for help to do this :
I have a form, with many fields (text or combox with static values). when i fill the filed and validate the form, i can access without any problem to the result page, with all the data.
but, i want to put an empty combobox (for field ‘users’ for example) and a ‘new’ button just next, to add user with a js prompt box into the combobox. then i want to keep the new users in the combobox for all the next uses of my request form and eventually add some new again with the ‘new’ button
if someone can help me, it will be apreciated 
thanks
Subject: form, combobox and js informations
Let me see if I understand…
You would like to add a new field that has a button next to it that will open a JavaScript Prompt and populate that field…
Try this:
https://www-10.lotus.com/ldd/46dom.nsf/55c38d716d632d9b8525689b005ba1c0/3cca2565ea71021585256a99002c4759?OpenDocument
HTH,
Dan
Subject: RE: form, combobox and js informations
thanks,
hum, in fact i don’t have to use js absolutely. I just have a combobox ‘client’ in my form, and at the load of the page this combobox must load all the client name in order to select one. Furthermore i need a ‘new client’ button in case of the client dosen’t exist in the db.
Subject: RE: form, combobox and js informations
Where are these client names coming from? A static list, another database, NAB???
You can always populate the field by using a dynamic list – a view column, @DBLookup – something where the list can be updated by the user…
HTH,
Dan
Subject: RE: form, combobox and js informations
the clients name come from the current document db, i just want to store them in the current doc.
i’m going to try with @dblookup to display them in the list, but which formula can i use with the buton ‘new client’ ? 'cause when i use lotusscript in the sub click() of the button, the button is not displayed in the web view of my page ?
thanks for all,
Subject: RE: form, combobox and js informations
Just set the combobox to “Allow entries not in list”. If you use a view that is CATEGORISED on the client names from exisiting documents, the new client will automatically be added to the list for the next use. That assumes that you aren’t creating separate “client profile” documents. If you are, then the code gets quite a bit more complex, and you will have to use either LotusScript or Java (not JavaScript) to create the new client profile when the document is saved.