Advertisement Create a free account

Attribute value of a Select option

Hi, I have a problem with the value of a select option. I have my caracteristique Value : <input type="hidden" name="attr_For" value="4"/> <input type="hidden" name="attr_Agi" value="2"/> ect.... Then, I select the skill's caracteristique like thaht : <select name="attr_SkillCarac"> <option value="@{For}">For</option> <option value="@{Agi}">Agi</option> </select> The value of my Select option is so : "@{For}" or "@{Agi}", ect... but i want to have the VALUE of this attribute like "4" or "2". Can is it possible? Thank you, and sorry for my google english
1526392752

Edited 1526392866
Vince
Pro
Sheet Author
When you pull the value for SkillCarac, what do you get?   How are you using the value of SkillCarac? ie the calculation of another attribute or just posting the value as a readonly input on the sheet?  If it's another attribute try type="number" ie <input name="attr_SkillCarac-mod" type="number" value="@{SkillCarac}"> or if it's used for a formula try adding parenthesis around the value ie value="(1d20+@{SkillCarac})".
This is my calculation :  <input type="hidden" name="attr_yAlphab√©tisation" value="(((@{SkillCarac} + @{rankDAlphab√©tisation}) - abs(@{SkillCarac} - @{rankDAlphab√©tisation})) / 2)" disabled><span></span> And this not work. Even if I add parenthesis :(
1526413313

Edited 1526413395
Scott C.
Pro
Sheet Author
API Scripter
Is it just showing the formula in the input? I think you need to do disabled=true or disabled="true", not just disabled. Disclaimer: I don't use autocalc, so I'm not 100% sure
Nop, even with disable=true, it's dont work. 
1526415902
Jakob
Sheet Author
API Scripter
Vindikaell said: Nop, even with disable=true, it's dont work.  Can you be more precise? What do you mean by "it doesn't work"?
It's all right ! Thanks for your answer, it was a simple command mistake !