Bug or syntax problem: 5.1 B5 PC (5.1.0.0895) Warning when compiling new text input box

Page 1 of 1 (9 items)
This post has 8 Replies | 2 Followers

Posts 797
Tim Hensler | Forum Activity | Posted: Mon, Apr 29 2013 8:42 PM

When I compile a document using the text input box syntax: {{ input id=QUESTION_1 | type=text | lines=3 | prompt=“Type Answer Here” }}

I get a warning: [Warning] Unexpected attribute on element <input>: type

Posts 25592
Forum MVP
Dave Hooton | Forum Activity | Replied: Mon, Apr 29 2013 9:44 PM

Hi Tim

Just make id = Id

i.e. {{input Id=QUESTION_1 | type=text | lines=3 | prompt=“Type Answer Here”}}

Dave
===

Windows 10 & Android 8

Posts 18863
Rosie Perera | Forum Activity | Replied: Mon, Apr 29 2013 9:59 PM

If that is indeed the workaround, then it's problematic that the PB compiler isn't case insensitive on the word "id".

I haven't tried this out myself. No time right now.

Posts 25592
Forum MVP
Dave Hooton | Forum Activity | Replied: Tue, Apr 30 2013 2:21 AM

Rosie Perera:
If that is indeed the workaround, then it's problematic that the PB compiler isn't case insensitive on the word "id".

Yes, it's case sensitiveSmile

Dave
===

Windows 10 & Android 8

Posts 797
Tim Hensler | Forum Activity | Replied: Tue, Apr 30 2013 4:43 AM

Dave Hooton:
Just make id = Id

Hi Dave,

I copied and pasted the line from the release notes into my PB document.  The release notes has it as "id".  Per your suggestion I tried "Id" and "ID" and even "INPUT ID" and "Input Id"- all get the same warning.  The release notes indicate the attribute value is case sensitive, but it seems based on this experiment the attribute name isn't (at least this attribute name isn't).

The release notes has a space after "{{" and before "}}".  I removed those spaces to look like your text and I still get the warning.

I even copied your text and pasted it into my document and I get the same warning.

The warning, though, is indicating a problem with the "type" attribute, not the "input id" attribute, so I tried your capitalization idea on the "type" attribute value ("Text" and "TEXT") and I still get the same warning.

Posts 25592
Forum MVP
Dave Hooton | Forum Activity | Replied: Tue, Apr 30 2013 5:14 AM

Tim Hensler:
The warning, though, is indicating a problem with the "type" attribute, not the "input id" attribute,

I initially received an error about input id, but after making the change the Warning:

[Warning] Unexpected attribute on element <input>: type

   did not prevent the Input syntax from compiling and working with text.

However, I just tried {{input id=QUESTION_1 | type=text | width=4 | prompt=“Type”}} and it also worked, with the same warning as above. Hopefully Logos can enlighten us about the possible combinationsBig Smile

Dave
===

Windows 10 & Android 8

Posts 797
Tim Hensler | Forum Activity | Replied: Tue, Apr 30 2013 5:20 AM

Thank you for your help, Dave.  I've fat-fingered more than one new feature so I needed someone to sanity check my work.  I appreciate your help to confirm there does seem to be a problem.

Posts 777
Brisa Davis | Forum Activity | Replied: Tue, Apr 30 2013 11:11 AM

I am able to reproduce this issue and will report it to Development.

Posts 777
Brisa Davis | Forum Activity | Replied: Fri, Jun 7 2013 4:48 PM

This will be fixed in 5.1 release candidate 1.

Page 1 of 1 (9 items) | RSS