Hi Team,
I have a Text Box and Button beside that text box, when I enter anything in the text box and hit on "ENTER" button on keyboard I want the Button to submit the data.
Is it possible in Appian ?
Thanks
Bihitak
Discussion posts and replies are publicly visible
Hi bihitakdass,
Can you share the use case that why you want to save data in DB on 'ENTER' button and not keeping in variable and save in DB after the submission of form?
There's no OOB way to make the Enter button do this. It will perform the text box's SaveInto (some people are unaware of this), but there's no way to make it trigger anything external such as a button click. If the user presses "tab" they can tab to the button then press Enter or Space to trigger its behavior, though.
As I mentioned earlier saving data on hitting 'ENTER' in a text box is not a best practice. Although you can achieve it using 'writeRecords' or 'writeToDataStoreEntity'. Follow the code:
a!localVariables( local!note, { a!textField( label: "Text", value: local!note, saveInto: { local!note, a!writeRecords( records: recordType(recordTypeField: local!note, ) ) } ) } )