Use the --forms option.

Use the --forms option to create a forms dialog.

The forms dialog supports the following options:

<cmd>--add-entry</cmd>=<var>FieldName</var>

Add a new Entry in forms dialog.

--add-password<cmd></cmd>=<var>FieldName</var>

Add a new Password Entry in forms dialog. (Hide text)

<cmd>--add-calendar</cmd>=<var>FieldName</var>

Add a new Calendar in forms dialog.

<cmd>--text</cmd>=<var>TEXT</var>

Set the dialog text.

<cmd>--separator</cmd>=<var>SEPARATOR</var>

Set output separator character. (Default: | )

<cmd>--forms-date-format</cmd>=<var>PATTERN</var>

Set the format for the returned date. The default format depends on your locale. format must be a Format that is acceptable to the strftime function, for example %A %d/%m/%y.

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`
Forms Dialog Example Zenity forms dialog example