Use the
The forms dialog supports the following options:
Add a new Entry in forms dialog.
Add a new Password Entry in forms dialog. (Hide text)
Add a new Calendar in forms dialog.
Set the dialog text.
Set output separator character. (Default: | )
Set the format for the returned date. The default format depends on your locale. format must be a Format that is acceptable to the
The following example script shows how to create a forms dialog:
#!/bin/sh
zenity --forms --title="Add Friend" \
--text="Enter information about your friend." \
--separator="," \
--add-entry="First Name" \
--add-entry="Family Name" \
--add-entry="Email" \
--add-calendar="Birthday" >> addr.csv
case $? in
0)
echo "Friend added.";;
1)
echo "No friend added."
;;
-1)
echo "An unexpected error has occurred."
;;
esac