View Revisions: Issue #16124

Summary 16124: In custom question theme, cannot hide core attribute and set a default value
Revision 2020-04-10 18:13 by tpartner
Description In config.xml, I can hide core attributes with code like this:

  <attribute>
    <name>prefix</name>
    <category>Display</category>
    <inputtype></inputtype>
  </attribute>



However, when I try to hide the attribute AND set a default value like this, the default value is not picked up (in this case, the question is always hidden).

<attribute>
    <name>hidden</name>
    <category>Display</category>
    <inputtype></inputtype>
    <default>0</default>
</attribute>


This is a regression as it worked in 3.x.

Sample survey and question theme attached.
Revision 2020-04-10 18:13 by tpartner
Description In config.xml, I can hide core attributes with code like this:
<code>
  <attribute>
    <name>prefix</name>
    <category>Display</category>
    <inputtype></inputtype>
  </attribute>
</code>


However, when I try to hide the attribute AND set a default value like this, the default value is not picked up (in this case, the question is always hidden).

<attribute>
    <name>hidden</name>
    <category>Display</category>
    <inputtype></inputtype>
    <default>0</default>
</attribute>


This is a regression as it worked in 3.x.

Sample survey and question theme attached.
Revision 2020-04-10 18:12 by tpartner
Description In config.xml, I can hide core attributes with code like this:
[code]
  <attribute>
    <name>prefix</name>
    <category>Display</category>
    <inputtype></inputtype>
  </attribute>
[/code]


However, when I try to hide the attribute AND set a default value like this, the default value is not picked up (in this case, the question is always hidden).

<attribute>
    <name>hidden</name>
    <category>Display</category>
    <inputtype></inputtype>
    <default>0</default>
</attribute>


This is a regression as it worked in 3.x.

Sample survey and question theme attached.
Revision 2020-04-10 18:11 by tpartner
Description In config.xml, I can hide core attributes with code like this:

  <attribute>
    <name>prefix</name>
    <category>Display</category>
    <inputtype></inputtype>
  </attribute>


However, when I try to hide the attribute AND set a default value like this, the default value is not picked up (in this case, the question is always hidden).

<attribute>
    <name>hidden</name>
    <category>Display</category>
    <inputtype></inputtype>
    <default>0</default>
</attribute>


This is a regression as it worked in 3.x.

Sample survey and question theme attached.
Revision 2020-04-10 18:10 by tpartner
Description In config.xml, I can hide core attributes with code like this:
```html
  <attribute>
    <name>prefix</name>
    <category>Display</category>
    <inputtype></inputtype>
  </attribute>
```

However, when I try to hide the attribute AND set a default value like this, the default value is not picked up (in this case, the question is always hidden).

<attribute>
    <name>hidden</name>
    <category>Display</category>
    <inputtype></inputtype>
    <default>0</default>
</attribute>


This is a regression as it worked in 3.x.

Sample survey and question theme attached.
Revision 2020-04-10 18:10 by tpartner
Description In config.xml, I can hide core attributes with code like this:

  <attribute>
    <name>prefix</name>
    <category>Display</category>
    <inputtype></inputtype>
  </attribute>


However, when I try to hide the attribute AND set a default value like this, the default value is not picked up (in this case, the question is always hidden).

<attribute>
    <name>hidden</name>
    <category>Display</category>
    <inputtype></inputtype>
    <default>0</default>
</attribute>


This is a regression as it worked in 3.x.

Sample survey and question theme attached.
Revision 2020-04-10 18:08 by tpartner
Description In config.xml, I can hide core attributes with code like this:
`
  <attribute>
      <name>prefix</name>
      <category>Display</category>
      <inputtype></inputtype>
  </attribute>
`

However, when I try to hide the attribute AND set a default value like this, the default value is not picked up (in this case, the question is always hidden).
~
<attribute>
    <name>hidden</name>
    <category>Display</category>
    <inputtype></inputtype>
    <default>0</default>
</attribute>
~

This is a regression as it worked in 3.x.

Sample survey and question theme attached.
Revision 2020-04-10 18:08 by tpartner
Description In config.xml, I can hide core attributes with code like this:
``
  <attribute>
      <name>prefix</name>
      <category>Display</category>
      <inputtype></inputtype>
  </attribute>
``

However, when I try to hide the attribute AND set a default value like this, the default value is not picked up (in this case, the question is always hidden).
~~~
<attribute>
    <name>hidden</name>
    <category>Display</category>
    <inputtype></inputtype>
    <default>0</default>
</attribute>
~~~

This is a regression as it worked in 3.x.

Sample survey and question theme attached.
Revision 2020-04-10 18:07 by tpartner
Description In config.xml, I can hide core attributes with code like this:
```
  <attribute>
      <name>prefix</name>
      <category>Display</category>
      <inputtype></inputtype>
  </attribute>
```

However, when I try to hide the attribute AND set a default value like this, the default value is not picked up (in this case, the question is always hidden).
~~~
<attribute>
    <name>hidden</name>
    <category>Display</category>
    <inputtype></inputtype>
    <default>0</default>
</attribute>
~~~

This is a regression as it worked in 3.x.

Sample survey and question theme attached.
Revision 2020-04-10 18:06 by tpartner
Description In config.xml, I can hide core attributes with code like this:
```
  <attribute>
      <name>prefix</name>
      <category>Display</category>
      <inputtype></inputtype>
  </attribute>
```

However, when I try to hide the attribute AND set a default value like this, the default value is not picked up (in this case, the question is always hidden).

  <attribute>
      <name>hidden</name>
      <category>Display</category>
      <inputtype></inputtype>
      <default>0</default>
  </attribute>

This is a regression as it worked in 3.x.

Sample survey and question theme attached.
Revision 2020-04-10 18:06 by tpartner
Description In config.xml, I can hide core attributes with code like this:

  <attribute>
      <name>prefix</name>
      <category>Display</category>
      <inputtype></inputtype>
  </attribute>

However, when I try to hide the attribute AND set a default value like this, the default value is not picked up (in this case, the question is always hidden).

  <attribute>
      <name>hidden</name>
      <category>Display</category>
      <inputtype></inputtype>
      <default>0</default>
  </attribute>

This is a regression as it worked in 3.x.

Sample survey and question theme attached.