Results 1 to 3 of 3

Thread: dialog inputbox - a default input value

  1. #1
    Join Date
    Jul 2011
    Beans
    34

    dialog inputbox - a default input value

    Say i want to create a simple inputbox like this:

    Code:
    dialog --inputbox "Please enter a hostname" 10 60
    Is there a way to get a default value already filled in the input field? Say i would like it to say "ubuntu" in the input field. Thanks in advanced

  2. #2
    Join Date
    Feb 2013
    Beans
    Hidden!

    Re: dialog inputbox - a default input value

    It's the fourth parameter
    Code:
    dialog --inputbox "Please enter a hostname" 10 60 ubuntu

  3. #3
    Join Date
    Jul 2011
    Beans
    34

    Re: dialog inputbox - a default input value

    Quote Originally Posted by schragge View Post
    It's the fourth parameter
    Code:
    dialog --inputbox "Please enter a hostname" 10 60 ubuntu
    A that was simple. i should have figured that out myself Anyway really appreciate your help.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •