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

Tim Hensler
Tim Hensler Member Posts: 1,532 ✭✭✭

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

Comments

  • Dave Hooton
    Dave Hooton MVP Posts: 35,767

    Hi Tim

    Just make id = Id

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

    Dave
    ===

    Windows 11 & Android 13

  • Rosie Perera
    Rosie Perera Member Posts: 26,202 ✭✭✭✭✭

    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.

  • Dave Hooton
    Dave Hooton MVP Posts: 35,767

    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 sensitive[:)]

    Dave
    ===

    Windows 11 & Android 13

  • Tim Hensler
    Tim Hensler Member Posts: 1,532 ✭✭✭

    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.

  • Dave Hooton
    Dave Hooton MVP Posts: 35,767

    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 combinations[:D]

    Dave
    ===

    Windows 11 & Android 13

  • Tim Hensler
    Tim Hensler Member Posts: 1,532 ✭✭✭

    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.

  • Brisa Davis
    Brisa Davis Member Posts: 891

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

  • Brisa Davis
    Brisa Davis Member Posts: 891

    This will be fixed in 5.1 release candidate 1.