Post by twetch#1034

17MgXq…wkrk Key · twetch

Help needed for $1.00.

I have a form, and the user can select "poor", "fair" or "good". However, I would like that a default value is assigned, and it is "good". If this does not suite the user they will be able to select and alter the choice.

Anyone?

What the chain says
Block
660 848
Time
2020-11-11T18:31:45Z
Signer
17MgXqNqMB648UNz9heZHswUQJ7o9xwkrk
App
twetch
Type
post
Content type
text/plain
Name in tx
twetch#1034

Fields the transaction did not carry are omitted. Open the payload to see the bytes as stored.

Signed by 17MgXqNqMB648UNz9heZHswUQJ7o9xwkrk Verified

Replies (6)

1HSjHJ…sCcr Key · twetch
Replying to@1z4hdD…YHWc

How do I define that the selected option will be "good" in the above code example?

I have seen online that I can say value="good" and selected="selected" but that doesn't quite work.

Exactly how would it be written in the above example?

1CgkV3…b3on Key · twetch
Replying to@1z4hdD…YHWc

Okay I’ll give it a go.

That should fit well with the code snippet which is attached above?

Because the values which are displayed (poor, fair, & good) aren’t directly visible in the code but liked from somewhere else.

Anyway, will try it out! 👍

Continue thread →