Multiple input fields in a single Widget.

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
mpilo0
Profound User
Posts: 49
Joined: Wed Jan 08, 2014 11:49 am
First Name: Michael
Last Name: Pilote
Company Name: Oceanex
Phone: (514) 875-8558
State / Province: Quebec
Country: Canada
Contact:

Multiple input fields in a single Widget.

Post by mpilo0 »

Hi, we're attemptint to make a range date picker widget. However we are having issues as to how we would bind the RPG variables for BOTH input fields. basically the range Date Picker is the following: http://eternicode.github.io/bootstrap-d ... on#sandbox

The innerHTML is the following:

Code: Select all

<div class="input-daterange input-group" id="datepicker">
    <input type="text" class="input-sm form-control" name="start" />
    <span class="input-group-addon">to</span>
    <input type="text" class="input-sm form-control" name="end" />
</div>
How would we bing the values of both these fields?
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: Multiple input fields in a single Widget.

Post by David »

Unfortunately, the framework will not support this, currently.

A custom widget can be input-capable only if the top-level element is something like <input> or <select>, etc., that it recognizes as an input control. With one of those, it will give you a "value" property that is input-capable, but it does not do that for elements like <div>.
mpilo0
Profound User
Posts: 49
Joined: Wed Jan 08, 2014 11:49 am
First Name: Michael
Last Name: Pilote
Company Name: Oceanex
Phone: (514) 875-8558
State / Province: Quebec
Country: Canada
Contact:

Re: Multiple input fields in a single Widget.

Post by mpilo0 »

Ok Thank you for your help!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests